Skip to content

Commit 01d307a

Browse files
committed
fix(client): v1/leverage method
1 parent 70adf5a commit 01d307a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/node-binance-api.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4184,7 +4184,7 @@ export default class Binance {
41844184
async futuresLeverage(symbol: string, leverage: number, params: Dict = {}) {
41854185
params.symbol = symbol;
41864186
params.leverage = leverage;
4187-
return await this.privateFuturesRequest('v1/leverage', params);
4187+
return await this.privateFuturesRequest('v1/leverage', params, 'POST');
41884188
}
41894189

41904190
// ISOLATED, CROSSED
@@ -4198,15 +4198,15 @@ export default class Binance {
41984198
async futuresMarginType(symbol: string, marginType: string, params: Dict = {}) {
41994199
params.symbol = symbol;
42004200
params.marginType = marginType;
4201-
return await this.privateFuturesRequest('v1/marginType', params);
4201+
return await this.privateFuturesRequest('v1/marginType', params, 'POST');
42024202
}
42034203

42044204
// type: 1: Add postion margin,2: Reduce postion margin
42054205
async futuresPositionMargin(symbol: string, amount: number, type = 1, params: Dict = {}) {
42064206
params.symbol = symbol;
42074207
params.amount = amount;
42084208
params.type = type;
4209-
return await this.privateFuturesRequest('v1/positionMargin', params);
4209+
return await this.privateFuturesRequest('v1/positionMargin', params, 'POST');
42104210
}
42114211

42124212
async futuresPositionMarginHistory(symbol: string, params: Dict = {}) {

0 commit comments

Comments
 (0)