fix test
This commit is contained in:
@@ -46,6 +46,7 @@ export const API_ERROR_CODE = {
|
||||
LEVERAGE_NOT_MODIFIED: 34036,
|
||||
SAME_SLTP_MODE: 37002,
|
||||
COPY_TRADE_NOT_OPEN_ORDER: 39426,
|
||||
QTY_EXCEEDS_MAX_LIMIT: 130006,
|
||||
ORDER_NOT_FOUND_OR_TOO_LATE_LINEAR: 130010,
|
||||
ORDER_COST_NOT_AVAILABLE: 130021,
|
||||
CANNOT_SET_LINEAR_TRADING_STOP_FOR_ZERO_POS: 130024,
|
||||
|
||||
@@ -75,17 +75,16 @@ describe('Private Linear REST API POST Endpoints', () => {
|
||||
order_type: 'Limit',
|
||||
side: 'Buy',
|
||||
symbol,
|
||||
qty: 1,
|
||||
qty: 1000000,
|
||||
price: 8100,
|
||||
base_price: 8300,
|
||||
stop_px: 8150,
|
||||
time_in_force: 'GoodTillCancel',
|
||||
order_link_id: 'cus_order_id_1',
|
||||
reduce_only: false,
|
||||
trigger_by: 'LastPrice',
|
||||
})
|
||||
).toMatchObject({
|
||||
ret_code: API_ERROR_CODE.INSUFFICIENT_BALANCE_FOR_ORDER_COST_LINEAR,
|
||||
ret_code: API_ERROR_CODE.QTY_EXCEEDS_MAX_LIMIT,
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user