add account asset & USDC options clients

This commit is contained in:
tiagosiebler
2022-09-08 13:39:07 +01:00
parent ed373f380f
commit 63201b465c
19 changed files with 1009 additions and 80 deletions

View File

@@ -1,4 +1,4 @@
import { InverseClient } from '../../src/inverse-client';
import { InverseClient } from '../../src/';
import { successResponseList, successResponseObject } from '../response.util';
describe('Private Inverse REST API Endpoints', () => {

View File

@@ -40,7 +40,6 @@ describe('Private Inverse REST API Endpoints', () => {
})
).toMatchObject({
ret_code: API_ERROR_CODE.ORDER_NOT_FOUND_OR_TOO_LATE,
ret_msg: 'order not exists or too late to cancel',
});
});
@@ -62,7 +61,6 @@ describe('Private Inverse REST API Endpoints', () => {
})
).toMatchObject({
ret_code: API_ERROR_CODE.ORDER_NOT_FOUND_OR_TOO_LATE,
ret_msg: 'order not exists or too late to replace',
});
});
@@ -81,7 +79,6 @@ describe('Private Inverse REST API Endpoints', () => {
})
).toMatchObject({
ret_code: API_ERROR_CODE.INSUFFICIENT_BALANCE,
ret_msg: 'Insufficient wallet balance',
});
});
@@ -93,7 +90,6 @@ describe('Private Inverse REST API Endpoints', () => {
})
).toMatchObject({
ret_code: API_ERROR_CODE.ORDER_NOT_FOUND_OR_TOO_LATE,
ret_msg: expect.any(String),
});
});
@@ -114,7 +110,6 @@ describe('Private Inverse REST API Endpoints', () => {
})
).toMatchObject({
ret_code: API_ERROR_CODE.ORDER_NOT_FOUND_OR_TOO_LATE,
ret_msg: 'order not exists or too late to replace',
});
});
@@ -126,7 +121,6 @@ describe('Private Inverse REST API Endpoints', () => {
})
).toMatchObject({
ret_code: API_ERROR_CODE.POSITION_IS_CROSS_MARGIN,
ret_msg: expect.any(String),
});
});
@@ -138,7 +132,6 @@ describe('Private Inverse REST API Endpoints', () => {
})
).toMatchObject({
ret_code: API_ERROR_CODE.CANNOT_SET_TRADING_STOP_FOR_ZERO_POS,
ret_msg: 'can not set tp/sl/ts for zero position',
});
});
@@ -162,7 +155,6 @@ describe('Private Inverse REST API Endpoints', () => {
})
).toMatchObject({
ret_code: API_ERROR_CODE.SAME_SLTP_MODE,
ret_msg: 'same tp sl mode2',
});
});