From 3e14c63002f852305f8fb953f7f50289b53a5351 Mon Sep 17 00:00:00 2001 From: CryptoCompiler <72892531+peepopoggers@users.noreply.github.com> Date: Fri, 22 Jan 2021 10:10:31 +0000 Subject: [PATCH] Missing Endpoint --- src/inverse-client.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/inverse-client.ts b/src/inverse-client.ts index c126654..3ee8ff0 100644 --- a/src/inverse-client.ts +++ b/src/inverse-client.ts @@ -75,6 +75,24 @@ export class InverseClient extends SharedEndpoints { }): GenericAPIResponse { return this.requestWrapper.get('v2/public/mark-price-kline', params); } + + getIndexPriceKline(params: { + symbol: string; + interval: string; + from: number; + limit?: number; + }): GenericAPIResponse { + return this.requestWrapper.get('v2/public/index-price-kline', params); + } + + getPremiumIndexKline(params: { + symbol: string; + interval: string; + from: number; + limit?: number; + }): GenericAPIResponse { + return this.requestWrapper.get('v2/public/premium-index-kline', params); + } getOpenInterest(params: { symbol: string;