(self, order: dict, market: Market = None)
| 4584 | return self.safe_string(statuses, status, status) |
| 4585 | |
| 4586 | def parse_order(self, order: dict, market: Market = None) -> Order: |
| 4587 | # |
| 4588 | # spot |
| 4589 | # |
| 4590 | # { |
| 4591 | # "id": 13997833014, |
| 4592 | # "symbol": "ethbtc", |
| 4593 | # "account-id": 3398321, |
| 4594 | # "amount": "0.045000000000000000", |
| 4595 | # "price": "0.034014000000000000", |
| 4596 | # "created-at": 1545836976871, |
| 4597 | # "type": "sell-limit", |
| 4598 | # "field-amount": "0.045000000000000000", # they have fixed it for filled-amount |
| 4599 | # "field-cash-amount": "0.001530630000000000", # they have fixed it for filled-cash-amount |
| 4600 | # "field-fees": "0.000003061260000000", # they have fixed it for filled-fees |
| 4601 | # "finished-at": 1545837948214, |
| 4602 | # "source": "spot-api", |
| 4603 | # "state": "filled", |
| 4604 | # "canceled-at": 0 |
| 4605 | # } |
| 4606 | # |
| 4607 | # { |
| 4608 | # "id": 20395337822, |
| 4609 | # "symbol": "ethbtc", |
| 4610 | # "account-id": 5685075, |
| 4611 | # "amount": "0.001000000000000000", |
| 4612 | # "price": "0.0", |
| 4613 | # "created-at": 1545831584023, |
| 4614 | # "type": "buy-market", |
| 4615 | # "field-amount": "0.029100000000000000", # they have fixed it for filled-amount |
| 4616 | # "field-cash-amount": "0.000999788700000000", # they have fixed it for filled-cash-amount |
| 4617 | # "field-fees": "0.000058200000000000", # they have fixed it for filled-fees |
| 4618 | # "finished-at": 1545831584181, |
| 4619 | # "source": "spot-api", |
| 4620 | # "state": "filled", |
| 4621 | # "canceled-at": 0 |
| 4622 | # } |
| 4623 | # |
| 4624 | # linear swap createOrder, closePosition |
| 4625 | # |
| 4626 | # { |
| 4627 | # "order_id": "1512501029504577536", |
| 4628 | # "client_order_id": "1512501029504577536" |
| 4629 | # } |
| 4630 | # |
| 4631 | # linear swap algo createOrder |
| 4632 | # |
| 4633 | # { |
| 4634 | # "algo_id": "1512871666507657216", |
| 4635 | # "algo_client_order_id": null |
| 4636 | # } |
| 4637 | # |
| 4638 | # future and swap: fetchOrders |
| 4639 | # |
| 4640 | # { |
| 4641 | # "order_id": 773131315209248768, |
| 4642 | # "contract_code": "ADA201225", |
| 4643 | # "symbol": "ADA", |
no test coverage detected