From 7ae88dec0ea7b06709b74297f700a8500a51702d Mon Sep 17 00:00:00 2001 From: Stefan Aebischer Date: Mon, 20 Jan 2020 22:34:18 -0500 Subject: [PATCH] Allow symbol as parameter for getTradeRecords --- lib/rest-client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rest-client.js b/lib/rest-client.js index 7f6b2ba..dbf15d8 100644 --- a/lib/rest-client.js +++ b/lib/rest-client.js @@ -179,7 +179,7 @@ module.exports = class RestClient { async getTradeRecords(params) { assert(params, 'No params passed'); - assert(params.order_id, 'Parameter order_id is required'); + assert(params.order_id || params.symbol, 'Parameter order_id OR symbol is required'); return await this.request.get('/v2/private/execution/list', params); }