diff --git a/src/inverse-client.ts b/src/inverse-client.ts index 9c8064b..b597c68 100644 --- a/src/inverse-client.ts +++ b/src/inverse-client.ts @@ -393,21 +393,6 @@ export class InverseClient extends BaseRestClient { return this.postPrivate('v2/private/position/switch-isolated', params); } - /** - * Risk Limit - */ - - getRiskLimitList(): Promise> { - return this.getPrivate('open-api/wallet/risk-limit/list'); - } - - setRiskLimit(params: { - symbol: string; - risk_id: string; - }): Promise> { - return this.postPrivate('open-api/wallet/risk-limit', params); - } - /** * Funding */ diff --git a/src/inverse-futures-client.ts b/src/inverse-futures-client.ts index afe16ef..9892dc7 100644 --- a/src/inverse-futures-client.ts +++ b/src/inverse-futures-client.ts @@ -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> { - return this.getPrivate('open-api/wallet/risk-limit/list'); - } - - setRiskLimit(params: { - symbol: string; - risk_id: string; - }): Promise> { - return this.postPrivate('open-api/wallet/risk-limit', params); - } - /** * Funding */ diff --git a/test/inverse-futures/private.read.test.ts b/test/inverse-futures/private.read.test.ts index af52130..8fd5ec8 100644 --- a/test/inverse-futures/private.read.test.ts +++ b/test/inverse-futures/private.read.test.ts @@ -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() diff --git a/test/inverse-futures/private.write.test.ts b/test/inverse-futures/private.write.test.ts index a2b6965..bea07a6 100644 --- a/test/inverse-futures/private.write.test.ts +++ b/test/inverse-futures/private.write.test.ts @@ -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}]`, - }); - }); }); diff --git a/test/inverse/private.read.test.ts b/test/inverse/private.read.test.ts index 12301c1..42b4271 100644 --- a/test/inverse/private.read.test.ts +++ b/test/inverse/private.read.test.ts @@ -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() diff --git a/test/inverse/private.write.test.ts b/test/inverse/private.write.test.ts index 2153c33..7da7662 100644 --- a/test/inverse/private.write.test.ts +++ b/test/inverse/private.write.test.ts @@ -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', - }); - }); });