From 62ea702f2660b52507ca1c33e534c4b7065cd386 Mon Sep 17 00:00:00 2001 From: CryptoCompiler <72892531+peepopoggers@users.noreply.github.com> Date: Fri, 22 Jan 2021 15:43:37 +0000 Subject: [PATCH] Added Risk Limit and Funding Endpoints --- src/linear-client.ts | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/src/linear-client.ts b/src/linear-client.ts index 62862fd..8811a5e 100644 --- a/src/linear-client.ts +++ b/src/linear-client.ts @@ -325,13 +325,25 @@ export class LinearClient extends SharedEndpoints { } //Risk Limit + + getRiskLimitList(params: { + symbol: string; + }): GenericAPIResponse { + return this.requestWrapper.get('public/linear/risk-limit'); + } + //Funding - //API Key Info - - //------------Wallet Data Endpoints------------> - - //-------------API Data Endpoints--------------> + getPredictedFundingFee(params: { + symbol: string; + }): GenericAPIResponse { + return this.requestWrapper.get('private/linear/funding/predicted-funding'); + } + getLastFundingFee(params: { + symbol: string; + }): GenericAPIResponse { + return this.requestWrapper.get('private/linear/funding/prev-funding'); + } }