diff --git a/src/constants/enum.ts b/src/constants/enum.ts index 8526efc..db6d1e6 100644 --- a/src/constants/enum.ts +++ b/src/constants/enum.ts @@ -21,6 +21,7 @@ export const API_ERROR_CODE = { INCORRECT_PRIVATE_OPERATIONS: 3303001, /** Account not unified margin, update required */ ACCOUNT_NOT_UNIFIED: 10020, + UNKNOWN_ERROR: 12000, BALANCE_INSUFFICIENT_SPOT_V3: 12131, ORDER_NOT_FOUND_SPOT_V3: 12213, ORDER_NOT_FOUND_LEVERAGED_TOKEN: 12407, diff --git a/test/spot/private.v3.write.test.ts b/test/spot/private.v3.write.test.ts index 6e9694f..2377bc6 100644 --- a/test/spot/private.v3.write.test.ts +++ b/test/spot/private.v3.write.test.ts @@ -73,7 +73,9 @@ describe('Private Spot REST API POST Endpoints', () => { it('repayCrossMarginLoan()', async () => { expect(await api.repayCrossMarginLoan('USDT', '1')).toMatchObject({ - retCode: API_ERROR_CODE.CROSS_MARGIN_REPAYMENT_NOT_REQUIRED, + retCode: API_ERROR_CODE.UNKNOWN_ERROR, + // previously: + // retCode: API_ERROR_CODE.CROSS_MARGIN_REPAYMENT_NOT_REQUIRED, }); }); });