fix(#155): remove abandoned endpoints

This commit is contained in:
tiagosiebler
2022-06-30 16:32:56 +01:00
parent c518a85524
commit dac46b64fb
6 changed files with 0 additions and 69 deletions

View File

@@ -393,21 +393,6 @@ export class InverseClient extends BaseRestClient {
return this.postPrivate('v2/private/position/switch-isolated', params);
}
/**
* Risk Limit
*/
getRiskLimitList(): Promise<APIResponseWithTime<any>> {
return this.getPrivate('open-api/wallet/risk-limit/list');
}
setRiskLimit(params: {
symbol: string;
risk_id: string;
}): Promise<APIResponseWithTime<any>> {
return this.postPrivate('open-api/wallet/risk-limit', params);
}
/**
* Funding
*/

View File

@@ -401,24 +401,6 @@ export class InverseFuturesClient extends BaseRestClient {
return this.getPrivate('futures/private/trade/closed-pnl/list', params);
}
/**
**** The following are all the same as the inverse client ****
*/
/**
* Risk Limit
*/
getRiskLimitList(): Promise<APIResponseWithTime<any>> {
return this.getPrivate('open-api/wallet/risk-limit/list');
}
setRiskLimit(params: {
symbol: string;
risk_id: string;
}): Promise<APIResponseWithTime<any>> {
return this.postPrivate('open-api/wallet/risk-limit', params);
}
/**
* Funding
*/

View File

@@ -79,12 +79,6 @@ describe('Public Inverse-Futures REST API GET Endpoints', () => {
);
});
it('getRiskLimitList()', async () => {
expect(await api.getRiskLimitList()).toMatchObject(
successResponseList('ok')
);
});
it('getMyLastFundingFee()', async () => {
expect(await api.getMyLastFundingFee({ symbol: symbol })).toMatchObject(
successResponseObject()

View File

@@ -183,16 +183,4 @@ describe('Private Inverse-Futures REST API POST Endpoints', () => {
ret_msg: 'Isolated not modified',
});
});
it('setRiskLimit()', async () => {
expect(
await api.setRiskLimit({
symbol,
risk_id: 'myriskid',
})
).toMatchObject({
ret_code: -1,
ret_msg: `Currently not support symbol[${symbol}]`,
});
});
});

View File

@@ -77,12 +77,6 @@ describe('Private Inverse REST API Endpoints', () => {
);
});
it('getRiskLimitList()', async () => {
expect(await api.getRiskLimitList()).toMatchObject(
successResponseList('ok')
);
});
it('getClosedPnl()', async () => {
expect(await api.getClosedPnl({ symbol: symbol })).toMatchObject(
successResponseObject()

View File

@@ -178,16 +178,4 @@ describe('Private Inverse REST API Endpoints', () => {
})
).toMatchObject(successResponseObject());
});
it('setRiskLimit()', async () => {
expect(
await api.setRiskLimit({
symbol,
risk_id: 'myriskid',
})
).toMatchObject({
ret_code: API_ERROR_CODE.RISK_LIMIT_NOT_EXISTS,
ret_msg: 'risk limit not exists',
});
});
});