From e6f21e99568de91b3ee1f27325a894971d9b785e Mon Sep 17 00:00:00 2001 From: peepopoggers <72892531+peepopoggers@users.noreply.github.com> Date: Tue, 2 Feb 2021 11:51:53 +0000 Subject: [PATCH] comments --- src/inverse-client.ts | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/src/inverse-client.ts b/src/inverse-client.ts index 16b8471..d0f661f 100644 --- a/src/inverse-client.ts +++ b/src/inverse-client.ts @@ -33,7 +33,11 @@ export class InverseClient extends SharedEndpoints { return this; } - //------------Market Data Endpoints------------> + /** + * + * Market Data Endpoints + * + */ getKline(params: { symbol: string; @@ -112,7 +116,13 @@ export class InverseClient extends SharedEndpoints { return this.requestWrapper.get('v2/public/premium-index-kline', params); } - //-----------Account Data Endpoints------------> + /** + * + * Account Data Endpoints + * + */ + + //Active Orders placeActiveOrder(orderRequest: { side: string; @@ -171,6 +181,8 @@ export class InverseClient extends SharedEndpoints { }): GenericAPIResponse { return this.requestWrapper.get('v2/private/order', params); } + + //Conditional Orders placeConditionalOrder(params: { side: string; @@ -230,6 +242,8 @@ export class InverseClient extends SharedEndpoints { }): GenericAPIResponse { return this.requestWrapper.get('v2/private/stop-order', params); } + + //Position /** * @deprecated use getPosition() instead @@ -305,6 +319,8 @@ export class InverseClient extends SharedEndpoints { return this.requestWrapper.get('v2/private/trade/closed-pnl/list', params); } + //Risk Limit + getRiskLimitList(): GenericAPIResponse { return this.requestWrapper.get('open-api/wallet/risk-limit/list'); } @@ -315,6 +331,8 @@ export class InverseClient extends SharedEndpoints { }): GenericAPIResponse { return this.requestWrapper.post('open-api/wallet/risk-limit', params); } + + //Funding getLastFundingRate(params: { symbol: string; @@ -333,6 +351,8 @@ export class InverseClient extends SharedEndpoints { }): GenericAPIResponse { return this.requestWrapper.get('v2/private/funding/predicted-funding', params); } + + //misc getLcpInfo(params: { symbol: string;