add test coverage for all spot v3 endpoints

This commit is contained in:
tiagosiebler
2022-09-10 12:57:00 +01:00
parent 1c9c6aa1e2
commit 66dcd09f18
3 changed files with 40 additions and 14 deletions

View File

@@ -17,9 +17,13 @@ export const API_ERROR_CODE = {
/** This could mean bad request, incorrect value types or even incorrect/missing values */
PARAMS_MISSING_OR_WRONG: 10001,
INCORRECT_API_KEY_PERMISSIONS: 10005,
BALANCE_INSUFFICIENT_SPOT_V3: 12131,
ORDER_NOT_FOUND_SPOT_V3: 12213,
ORDER_NOT_FOUND_LEVERAGED_TOKEN: 12407,
EXCEEDED_UPPER_LIMIT_LEVERAGED_TOKEN: 12409,
QUERY_ACCOUNT_INFO_ERROR: 12602,
CROSS_MARGIN_USER_NOT_FOUND: 12607,
CROSS_MARGIN_REPAYMENT_NOT_REQUIRED: 12616,
ORDER_NOT_FOUND_OR_TOO_LATE: 20001,
POSITION_STATUS_NOT_NORMAL: 30013,
CANNOT_SET_TRADING_STOP_FOR_ZERO_POS: 30024,