remove deprecated REST endpoint
This commit is contained in:
@@ -77,19 +77,6 @@ export class InverseClient extends SharedEndpoints {
|
|||||||
return this.requestWrapper.get('v2/public/trading-records', params);
|
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: {
|
getMarkPriceKline(params: {
|
||||||
symbol: string;
|
symbol: string;
|
||||||
interval: string;
|
interval: string;
|
||||||
|
|||||||
@@ -30,19 +30,6 @@ export default class SharedEndpoints {
|
|||||||
return this.requestWrapper.get('v2/public/symbols');
|
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
|
* Market Data : Advanced
|
||||||
|
|||||||
@@ -55,10 +55,6 @@ describe('Public Inverse Futures REST API Endpoints', () => {
|
|||||||
expect(await api.getSymbols()).toMatchObject(successResponseList());
|
expect(await api.getSymbols()).toMatchObject(successResponseList());
|
||||||
});
|
});
|
||||||
|
|
||||||
it('getLiquidations()', async () => {
|
|
||||||
expect(await api.getLiquidations({ symbol })).toMatchObject(successResponseList());
|
|
||||||
});
|
|
||||||
|
|
||||||
it('getServerTime()', async () => {
|
it('getServerTime()', async () => {
|
||||||
expect(await api.getServerTime()).toMatchObject(successResponseObject());
|
expect(await api.getServerTime()).toMatchObject(successResponseObject());
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -55,10 +55,6 @@ describe('Public Inverse REST API Endpoints', () => {
|
|||||||
expect(await api.getSymbols()).toMatchObject(successResponseList());
|
expect(await api.getSymbols()).toMatchObject(successResponseList());
|
||||||
});
|
});
|
||||||
|
|
||||||
it('getLiquidations()', async () => {
|
|
||||||
expect(await api.getLiquidations({ symbol })).toMatchObject(successResponseList());
|
|
||||||
});
|
|
||||||
|
|
||||||
it('getServerTime()', async () => {
|
it('getServerTime()', async () => {
|
||||||
expect(await api.getServerTime()).toMatchObject(successResponseObject());
|
expect(await api.getServerTime()).toMatchObject(successResponseObject());
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -55,10 +55,6 @@ describe('Public Linear REST API Endpoints', () => {
|
|||||||
expect(await api.getSymbols()).toMatchObject(successResponseList());
|
expect(await api.getSymbols()).toMatchObject(successResponseList());
|
||||||
});
|
});
|
||||||
|
|
||||||
it('getLiquidations()', async () => {
|
|
||||||
expect(await api.getLiquidations({ symbol })).toMatchObject(successResponseList());
|
|
||||||
});
|
|
||||||
|
|
||||||
it('getServerTime()', async () => {
|
it('getServerTime()', async () => {
|
||||||
expect(await api.getServerTime()).toMatchObject(successResponseObject());
|
expect(await api.getServerTime()).toMatchObject(successResponseObject());
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user