Adds required parameter symbol to cancelActiveOrder

This commit is contained in:
Stefan Aebischer
2020-01-20 22:20:55 -05:00
parent 4fb1d963e2
commit 1b73064aa9

View File

@@ -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);