v3.2.1: add another UM response type.

This commit is contained in:
tiagosiebler
2022-11-15 16:19:32 +00:00
parent c46645713e
commit 226952d5d2
5 changed files with 95 additions and 7 deletions

View File

@@ -31,6 +31,15 @@ describe('Private Unified Margin REST API GET Endpoints', () => {
});
});
it('getHistoricOrders() with cursor', async () => {
const cursor =
'fb56c285-02ac-424e-a6b1-d10413b65fab%3A1668178953132%2Cfb56c285-02ac-424e-a6b1-d10413b65fab%3A1668178953132';
expect(await api.getHistoricOrders({ category, cursor })).toMatchObject({
retCode: API_ERROR_CODE.ACCOUNT_NOT_UNIFIED,
retMsg: expect.stringMatching(/not.*unified margin/gim),
});
});
it('getPositions()', async () => {
expect(await api.getPositions({ category })).toMatchObject({
retCode: API_ERROR_CODE.ACCOUNT_NOT_UNIFIED,