From ca14d888791009d0934603e93fcbc52c7f6d8c8c Mon Sep 17 00:00:00 2001 From: CryptoCompiler <72892531+peepopoggers@users.noreply.github.com> Date: Fri, 22 Jan 2021 10:10:07 +0000 Subject: [PATCH] Added OI, Big Deal, LS Ratio --- src/shared-endpoints.ts | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/shared-endpoints.ts b/src/shared-endpoints.ts index 4c280ee..474bd04 100644 --- a/src/shared-endpoints.ts +++ b/src/shared-endpoints.ts @@ -55,6 +55,29 @@ export default class SharedEndpoints { return this.requestWrapper.get('v2/public/liq-records', params); } + getOpenInterest(params: { + symbol: string; + period: string; + limit?: number; + }): GenericAPIResponse { + return this.requestWrapper.get('v2/public/open-interest', params); + } + + getLatestBigDeal(params: { + symbol: string; + limit?: number; + }): GenericAPIResponse { + return this.requestWrapper.get('v2/public/big-deal', params); + } + + getLongShortRatio(params: { + symbol: string; + period: string; + limit?: number; + }): GenericAPIResponse { + return this.requestWrapper.get('v2/public/account-ratio', params); + } + //------------Wallet Data Endpoints------------> getWalletBalance(params: {