diff --git a/src/inverse-client.ts b/src/inverse-client.ts index 31bd5d4..23c06f2 100644 --- a/src/inverse-client.ts +++ b/src/inverse-client.ts @@ -77,19 +77,6 @@ export class InverseClient extends SharedEndpoints { return this.requestWrapper.get('v2/public/trading-records', params); } - /** - * @deprecated use getLiquidations() instead - */ - getPublicLiquidations(params: { - symbol: string; - from?: number; - limit?: number; - start_time?: number; - end_time?: number; - }): GenericAPIResponse { - return this.getLiquidations(params); - } - getMarkPriceKline(params: { symbol: string; interval: string; diff --git a/src/shared-endpoints.ts b/src/shared-endpoints.ts index 730a320..c3ffd73 100644 --- a/src/shared-endpoints.ts +++ b/src/shared-endpoints.ts @@ -30,19 +30,6 @@ export default class SharedEndpoints { return this.requestWrapper.get('v2/public/symbols'); } - /** - * Get liquidated orders - */ - getLiquidations(params: { - symbol: string; - from?: number; - limit?: number; - start_time?: number; - end_time?: number; - }): GenericAPIResponse { - return this.requestWrapper.get('v2/public/liq-records', params); - } - /** * * Market Data : Advanced diff --git a/test/inverse-futures/public.test.ts b/test/inverse-futures/public.test.ts index 11162aa..213701c 100644 --- a/test/inverse-futures/public.test.ts +++ b/test/inverse-futures/public.test.ts @@ -55,10 +55,6 @@ describe('Public Inverse Futures REST API Endpoints', () => { expect(await api.getSymbols()).toMatchObject(successResponseList()); }); - it('getLiquidations()', async () => { - expect(await api.getLiquidations({ symbol })).toMatchObject(successResponseList()); - }); - it('getServerTime()', async () => { expect(await api.getServerTime()).toMatchObject(successResponseObject()); }); diff --git a/test/inverse/public.test.ts b/test/inverse/public.test.ts index 216f7ad..9139d0d 100644 --- a/test/inverse/public.test.ts +++ b/test/inverse/public.test.ts @@ -55,10 +55,6 @@ describe('Public Inverse REST API Endpoints', () => { expect(await api.getSymbols()).toMatchObject(successResponseList()); }); - it('getLiquidations()', async () => { - expect(await api.getLiquidations({ symbol })).toMatchObject(successResponseList()); - }); - it('getServerTime()', async () => { expect(await api.getServerTime()).toMatchObject(successResponseObject()); }); @@ -67,4 +63,4 @@ describe('Public Inverse REST API Endpoints', () => { expect(await api.getApiAnnouncements()).toMatchObject(successResponseList()); }); }); -}); \ No newline at end of file +}); diff --git a/test/linear/public.test.ts b/test/linear/public.test.ts index 46cb1ca..7cf195a 100644 --- a/test/linear/public.test.ts +++ b/test/linear/public.test.ts @@ -55,10 +55,6 @@ describe('Public Linear REST API Endpoints', () => { expect(await api.getSymbols()).toMatchObject(successResponseList()); }); - it('getLiquidations()', async () => { - expect(await api.getLiquidations({ symbol })).toMatchObject(successResponseList()); - }); - it('getServerTime()', async () => { expect(await api.getServerTime()).toMatchObject(successResponseObject()); }); @@ -67,4 +63,4 @@ describe('Public Linear REST API Endpoints', () => { expect(await api.getApiAnnouncements()).toMatchObject(successResponseList()); }); }); -}); \ No newline at end of file +}); diff --git a/tsconfig.json b/tsconfig.json index 89baa3c..0e8a4ca 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -15,10 +15,7 @@ "esModuleInterop": true, "lib": ["es2017","dom"], "baseUrl": ".", - "outDir": "lib", - "paths": { - "@src/*": ["src/*"] - } + "outDir": "lib" }, "include": ["src/**/*"], "exclude": [ @@ -27,4 +24,4 @@ "coverage", "doc" ] -} \ No newline at end of file +}