From 1b73064aa9d51b9403efcdbc5ea19c227e8121b1 Mon Sep 17 00:00:00 2001 From: Stefan Aebischer Date: Mon, 20 Jan 2020 22:20:55 -0500 Subject: [PATCH] Adds required parameter symbol to cancelActiveOrder --- lib/rest-client.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/rest-client.js b/lib/rest-client.js index 121f3e6..7f6b2ba 100644 --- a/lib/rest-client.js +++ b/lib/rest-client.js @@ -28,6 +28,7 @@ module.exports = class RestClient { async cancelActiveOrder(params) { 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'); return await this.request.post('/v2/private/order/cancel', params);