From 32625e14850926be78969696acf1cdbb12a4f4a7 Mon Sep 17 00:00:00 2001 From: CryptoCompiler <72892531+peepopoggers@users.noreply.github.com> Date: Fri, 22 Jan 2021 09:56:21 +0000 Subject: [PATCH] Added getSymbol and getLiq from inverse --- src/shared-endpoints.ts | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/src/shared-endpoints.ts b/src/shared-endpoints.ts index 99e68ac..4c280ee 100644 --- a/src/shared-endpoints.ts +++ b/src/shared-endpoints.ts @@ -28,6 +28,33 @@ export default class SharedEndpoints { return this.requestWrapper.get('v2/public/tickers', params); } + getSymbols(): GenericAPIResponse { + return this.requestWrapper.get('v2/public/symbols'); + } + + /** + * @deprecated use getLiquidations() instead + */ + getPublicLiquidations(params: { + symbol: string; + from?: number; + limit?: number; + start_time?: number; + end_time?: number; + }): GenericAPIResponse { + return this.getLiquidations(params); + } + + getLiquidations(params: { + symbol: string; + from?: number; + limit?: number; + start_time?: number; + end_time?: number; + }): GenericAPIResponse { + return this.requestWrapper.get('v2/public/liq-records', params); + } + //------------Wallet Data Endpoints------------> getWalletBalance(params: {