Allow symbol as parameter for getTradeRecords
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user