fix(#155): remove abandoned endpoints
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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}]`,
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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',
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user