Adds required parameter symbol to cancelActiveOrder
This commit is contained in:
@@ -28,6 +28,7 @@ module.exports = class RestClient {
|
|||||||
|
|
||||||
async cancelActiveOrder(params) {
|
async cancelActiveOrder(params) {
|
||||||
assert(params, 'No params passed');
|
assert(params, 'No params passed');
|
||||||
|
assert(params.symbol, 'Parameter symbol is required');
|
||||||
assert(params.order_id || params.order_link_id, 'Parameter order_id OR order_link_id is required');
|
assert(params.order_id || params.order_link_id, 'Parameter order_id OR order_link_id is required');
|
||||||
|
|
||||||
return await this.request.post('/v2/private/order/cancel', params);
|
return await this.request.post('/v2/private/order/cancel', params);
|
||||||
|
|||||||
Reference in New Issue
Block a user