(self, order: dict, market: Market = None)
| 5581 | return self.safe_string(types, type, type) |
| 5582 | |
| 5583 | def parse_order(self, order: dict, market: Market = None) -> Order: |
| 5584 | # |
| 5585 | # spot |
| 5586 | # |
| 5587 | # { |
| 5588 | # "symbol": "LTCBTC", |
| 5589 | # "orderId": 1, |
| 5590 | # "clientOrderId": "myOrder1", |
| 5591 | # "price": "0.1", |
| 5592 | # "origQty": "1.0", |
| 5593 | # "executedQty": "0.0", |
| 5594 | # "cummulativeQuoteQty": "0.0", |
| 5595 | # "status": "NEW", |
| 5596 | # "timeInForce": "GTC", |
| 5597 | # "type": "LIMIT", |
| 5598 | # "side": "BUY", |
| 5599 | # "stopPrice": "0.0", |
| 5600 | # "icebergQty": "0.0", |
| 5601 | # "time": 1499827319559, |
| 5602 | # "updateTime": 1499827319559, |
| 5603 | # "isWorking": True |
| 5604 | # } |
| 5605 | # |
| 5606 | # spot: editOrder |
| 5607 | # |
| 5608 | # { |
| 5609 | # "symbol": "BTCUSDT", |
| 5610 | # "orderId": 16383176297, |
| 5611 | # "orderListId": -1, |
| 5612 | # "clientOrderId": "x-TKT5PX2F22ecb58eb9074fb1be018c", |
| 5613 | # "transactTime": 1670891847932, |
| 5614 | # "price": "13500.00000000", |
| 5615 | # "origQty": "0.00085000", |
| 5616 | # "executedQty": "0.00000000", |
| 5617 | # "cummulativeQuoteQty": "0.00000000", |
| 5618 | # "status": "NEW", |
| 5619 | # "timeInForce": "GTC", |
| 5620 | # "type": "LIMIT", |
| 5621 | # "side": "BUY", |
| 5622 | # "fills": [] |
| 5623 | # } |
| 5624 | # |
| 5625 | # swap and future: editOrder |
| 5626 | # |
| 5627 | # { |
| 5628 | # "orderId": 151007482392, |
| 5629 | # "symbol": "BTCUSDT", |
| 5630 | # "status": "NEW", |
| 5631 | # "clientOrderId": "web_pCCGp9AIHjziKLlpGpXI", |
| 5632 | # "price": "25000", |
| 5633 | # "avgPrice": "0.00000", |
| 5634 | # "origQty": "0.001", |
| 5635 | # "executedQty": "0", |
| 5636 | # "cumQty": "0", |
| 5637 | # "cumQuote": "0", |
| 5638 | # "timeInForce": "GTC", |
| 5639 | # "type": "LIMIT", |
| 5640 | # "reduceOnly": False, |
no test coverage detected