move test to private
This commit is contained in:
@@ -408,7 +408,7 @@ export class InverseClient extends BaseRestClient {
|
||||
*/
|
||||
|
||||
getRiskLimitList(): GenericAPIResponse {
|
||||
return this.get('open-api/wallet/risk-limit/list');
|
||||
return this.getPrivate('open-api/wallet/risk-limit/list');
|
||||
}
|
||||
|
||||
setRiskLimit(params: {
|
||||
|
||||
@@ -80,6 +80,12 @@ 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()
|
||||
|
||||
@@ -70,10 +70,6 @@ describe('Public Inverse REST API Endpoints', () => {
|
||||
).toMatchObject(successResponseList());
|
||||
});
|
||||
|
||||
it('getRiskLimitList()', async () => {
|
||||
expect(await api.getRiskLimitList()).toMatchObject(successResponseList());
|
||||
});
|
||||
|
||||
it('getLastFundingRate()', async () => {
|
||||
expect(await api.getLastFundingRate({ symbol })).toMatchObject(
|
||||
successResponseObject()
|
||||
|
||||
Reference in New Issue
Block a user