Skip to content

Commit

Permalink
Fix gate.io fetchOrders
Browse files Browse the repository at this point in the history
This is what `response` is for me from gate.io at this point:

```
{'result': 'true', 'orders': [], 'message': 'Success', 'code': 0, 'elapsed': '0.892ms'}
```
  • Loading branch information
miracle2k committed Jun 3, 2018
1 parent 30b27e2 commit 343a802
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/gateio.js
Expand Up @@ -319,7 +319,7 @@ module.exports = class gateio extends Exchange {

async fetchOrders (symbol = undefined, since = undefined, limit = undefined, params = {}) {
let response = await this.privatePostOpenOrders (params);
return this.parseOrders (response['result']['orders'], undefined, since, limit);
return this.parseOrders (response['orders'], undefined, since, limit);
}

async fetchOrder (id, symbol = undefined, params = {}) {
Expand Down

0 comments on commit 343a802

Please sign in to comment.