comments
This commit is contained in:
@@ -33,7 +33,11 @@ export class InverseClient extends SharedEndpoints {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
//------------Market Data Endpoints------------>
|
/**
|
||||||
|
*
|
||||||
|
* Market Data Endpoints
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
getKline(params: {
|
getKline(params: {
|
||||||
symbol: string;
|
symbol: string;
|
||||||
@@ -112,7 +116,13 @@ export class InverseClient extends SharedEndpoints {
|
|||||||
return this.requestWrapper.get('v2/public/premium-index-kline', params);
|
return this.requestWrapper.get('v2/public/premium-index-kline', params);
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------Account Data Endpoints------------>
|
/**
|
||||||
|
*
|
||||||
|
* Account Data Endpoints
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
//Active Orders
|
||||||
|
|
||||||
placeActiveOrder(orderRequest: {
|
placeActiveOrder(orderRequest: {
|
||||||
side: string;
|
side: string;
|
||||||
@@ -171,6 +181,8 @@ export class InverseClient extends SharedEndpoints {
|
|||||||
}): GenericAPIResponse {
|
}): GenericAPIResponse {
|
||||||
return this.requestWrapper.get('v2/private/order', params);
|
return this.requestWrapper.get('v2/private/order', params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Conditional Orders
|
||||||
|
|
||||||
placeConditionalOrder(params: {
|
placeConditionalOrder(params: {
|
||||||
side: string;
|
side: string;
|
||||||
@@ -230,6 +242,8 @@ export class InverseClient extends SharedEndpoints {
|
|||||||
}): GenericAPIResponse {
|
}): GenericAPIResponse {
|
||||||
return this.requestWrapper.get('v2/private/stop-order', params);
|
return this.requestWrapper.get('v2/private/stop-order', params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Position
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated use getPosition() instead
|
* @deprecated use getPosition() instead
|
||||||
@@ -305,6 +319,8 @@ export class InverseClient extends SharedEndpoints {
|
|||||||
return this.requestWrapper.get('v2/private/trade/closed-pnl/list', params);
|
return this.requestWrapper.get('v2/private/trade/closed-pnl/list', params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Risk Limit
|
||||||
|
|
||||||
getRiskLimitList(): GenericAPIResponse {
|
getRiskLimitList(): GenericAPIResponse {
|
||||||
return this.requestWrapper.get('open-api/wallet/risk-limit/list');
|
return this.requestWrapper.get('open-api/wallet/risk-limit/list');
|
||||||
}
|
}
|
||||||
@@ -315,6 +331,8 @@ export class InverseClient extends SharedEndpoints {
|
|||||||
}): GenericAPIResponse {
|
}): GenericAPIResponse {
|
||||||
return this.requestWrapper.post('open-api/wallet/risk-limit', params);
|
return this.requestWrapper.post('open-api/wallet/risk-limit', params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Funding
|
||||||
|
|
||||||
getLastFundingRate(params: {
|
getLastFundingRate(params: {
|
||||||
symbol: string;
|
symbol: string;
|
||||||
@@ -333,6 +351,8 @@ export class InverseClient extends SharedEndpoints {
|
|||||||
}): GenericAPIResponse {
|
}): GenericAPIResponse {
|
||||||
return this.requestWrapper.get('v2/private/funding/predicted-funding', params);
|
return this.requestWrapper.get('v2/private/funding/predicted-funding', params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//misc
|
||||||
|
|
||||||
getLcpInfo(params: {
|
getLcpInfo(params: {
|
||||||
symbol: string;
|
symbol: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user