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