@@ -194,7 +194,7 @@ const API_KEY = 'xxx';
|
|||||||
const PRIVATE_KEY = 'yyy';
|
const PRIVATE_KEY = 'yyy';
|
||||||
const useLivenet = false;
|
const useLivenet = false;
|
||||||
|
|
||||||
const client = new javascript(
|
const client = new SpotClient(
|
||||||
API_KEY,
|
API_KEY,
|
||||||
PRIVATE_KEY,
|
PRIVATE_KEY,
|
||||||
|
|
||||||
|
|||||||
@@ -294,6 +294,7 @@ export class InverseClient extends SharedEndpoints {
|
|||||||
setUserLeverage(params: {
|
setUserLeverage(params: {
|
||||||
symbol: string;
|
symbol: string;
|
||||||
leverage: number;
|
leverage: number;
|
||||||
|
leverage_only?: boolean;
|
||||||
}): GenericAPIResponse {
|
}): GenericAPIResponse {
|
||||||
return this.requestWrapper.post('v2/private/position/leverage/save', params);
|
return this.requestWrapper.post('v2/private/position/leverage/save', params);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user