(self, client: Client, message)
| 1534 | return self.filter_by_symbol_since_limit(orders, symbol, since, limit, True) |
| 1535 | |
| 1536 | def handle_order(self, client: Client, message): |
| 1537 | # |
| 1538 | # spot |
| 1539 | # |
| 1540 | # { |
| 1541 | # "action": "snapshot", |
| 1542 | # "arg": {"instType": "SPOT", "channel": "orders", "instId": "BTCUSDT"}, |
| 1543 | # "data": [ |
| 1544 | # # see all examples in parseWsOrder |
| 1545 | # ], |
| 1546 | # "ts": 1701923297285 |
| 1547 | # } |
| 1548 | # |
| 1549 | # contract |
| 1550 | # |
| 1551 | # { |
| 1552 | # "action": "snapshot", |
| 1553 | # "arg": {"instType": "USDT-FUTURES", "channel": "orders", "instId": "default"}, |
| 1554 | # "data": [ |
| 1555 | # # see all examples in parseWsOrder |
| 1556 | # ], |
| 1557 | # "ts": 1701920595879 |
| 1558 | # } |
| 1559 | # |
| 1560 | # isolated and cross margin |
| 1561 | # |
| 1562 | # { |
| 1563 | # "action": "snapshot", |
| 1564 | # "arg": {"instType": "MARGIN", "channel": "orders-crossed", "instId": "BTCUSDT"}, |
| 1565 | # "data": [ |
| 1566 | # # see examples in parseWsOrder |
| 1567 | # ], |
| 1568 | # "ts": 1701923982497 |
| 1569 | # } |
| 1570 | # |
| 1571 | # uta |
| 1572 | # |
| 1573 | # { |
| 1574 | # "action": "snapshot", |
| 1575 | # "arg": { |
| 1576 | # "instType": "UTA", |
| 1577 | # "topic": "order" |
| 1578 | # }, |
| 1579 | # "data": [ |
| 1580 | # { |
| 1581 | # "category": "usdt-futures", |
| 1582 | # "symbol": "BTCUSDT", |
| 1583 | # "orderId": "xxx", |
| 1584 | # "clientOid": "xxx", |
| 1585 | # "price": "", |
| 1586 | # "qty": "0.001", |
| 1587 | # "amount": "1000", |
| 1588 | # "holdMode": "hedge_mode", |
| 1589 | # "holdSide": "long", |
| 1590 | # "tradeSide": "open", |
| 1591 | # "orderType": "market", |
| 1592 | # "timeInForce": "gtc", |
| 1593 | # "side": "buy", |
nothing calls this directly
no test coverage detected