(self, order, market: Market = None)
| 1666 | client.resolve(stored, 'order:usdcfutures') |
| 1667 | |
| 1668 | def parse_ws_order(self, order, market: Market = None): |
| 1669 | # |
| 1670 | # spot |
| 1671 | # |
| 1672 | # { |
| 1673 | # instId: 'EOSUSDT', |
| 1674 | # orderId: '1171779081105780739', |
| 1675 | # price: '0.81075', # limit price, field not present for market orders |
| 1676 | # clientOid: 'a2330139-1d04-4d78-98be-07de3cfd1055', |
| 1677 | # notional: '5.675250', # self is not cost! but notional |
| 1678 | # newSize: '7.0000', # self is not cost! quanity(for limit order or market sell) or cost(for market buy order) |
| 1679 | # size: '5.6752', # self is not cost, neither quanity, but notional! self field for "spot" can be ignored at all |
| 1680 | # # Note: for limit order(even filled) we don't have cost value in response, only in market order |
| 1681 | # orderType: 'limit', # limit, market |
| 1682 | # force: 'gtc', |
| 1683 | # side: 'buy', |
| 1684 | # accBaseVolume: '0.0000', # in case of 'filled', self would be set(for limit orders, self is the only indicator of the amount filled) |
| 1685 | # priceAvg: '0.00000', # in case of 'filled', self would be set |
| 1686 | # status: 'live', # live, filled, partially_filled |
| 1687 | # cTime: '1715099824215', |
| 1688 | # uTime: '1715099824215', |
| 1689 | # feeDetail: [], |
| 1690 | # enterPointSource: 'API' |
| 1691 | # #### trigger order has these additional fields: #### |
| 1692 | # "triggerPrice": "35100", |
| 1693 | # "price": "35100", # self is same price |
| 1694 | # "executePrice": "35123", # self is limit price |
| 1695 | # "triggerType": "fill_price", |
| 1696 | # "planType": "amount", |
| 1697 | # #### in case order had a partial fill: #### |
| 1698 | # fillPrice: '35123', |
| 1699 | # tradeId: '1171775539946528779', |
| 1700 | # baseVolume: '7', # field present in market order |
| 1701 | # fillTime: '1715098979937', |
| 1702 | # fillFee: '-0.0069987', |
| 1703 | # fillFeeCoin: 'BTC', |
| 1704 | # tradeScope: 'T', |
| 1705 | # } |
| 1706 | # |
| 1707 | # contract |
| 1708 | # |
| 1709 | # { |
| 1710 | # accBaseVolume: '0', # total amount filled during lifetime for order |
| 1711 | # cTime: '1715065875539', |
| 1712 | # clientOid: '1171636690041344003', |
| 1713 | # enterPointSource: 'API', |
| 1714 | # feeDetail: [{ |
| 1715 | # "feeCoin": "USDT", |
| 1716 | # "fee": "-0.162003" |
| 1717 | # }], |
| 1718 | # force: 'gtc', |
| 1719 | # instId: 'SEOSSUSDT', |
| 1720 | # leverage: '10', |
| 1721 | # marginCoin: 'USDT', |
| 1722 | # marginMode: 'crossed', |
| 1723 | # notionalUsd: '10.4468', |
| 1724 | # orderId: '1171636690028761089', |
| 1725 | # orderType: 'market', |
no test coverage detected