Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix "remaining" field in gate.io order status.
Here is an example of gate.io order result I am seeing in fetchOrder: ``` {'amount': '0.00000000', 'currencyPair': 'eos_usdt', 'fee': '0 USDT', 'feeCurrency': 'USDT', 'feePercentage': 0.2, 'feeValue': '0', 'filledAmount': '0', 'filledRate': '14.6201', 'initialAmount': '16.68270983', 'initialRate': '14.6201', 'left': 16.68270983, 'orderNumber': '837545296', 'rate': '14.6201', 'status': 'cancelled', 'timestamp': 1528048660, 'type': 'buy'} ``` But note the structure when submitting an order: ``` {'code': 0, 'filledAmount': '0', 'filledRate': '5', 'initialAmount': 5, 'leftAmount': '5.00000000', 'message': 'Success', 'orderNumber': 837670400, 'rate': '5', 'result': 'true', 'status': 'open', 'type': 'buy'} ``` It seems that in the order status, they carelessly named the field `left` instead of `leftAmount`.
- Loading branch information