Allow symbol as parameter for getTradeRecords

This commit is contained in:
Stefan Aebischer
2020-01-20 22:34:18 -05:00
parent 1b73064aa9
commit 7ae88dec0e

View File

@@ -179,7 +179,7 @@ module.exports = class RestClient {
async getTradeRecords(params) { async getTradeRecords(params) {
assert(params, 'No params passed'); 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); return await this.request.get('/v2/private/execution/list', params);
} }