MCPcopy Create free account
hub / github.com/ccxt/ccxt / handle_order

Method handle_order

python/ccxt/pro/bitget.py:1536–1666  ·  view source on GitHub ↗
(self, client: Client, message)

Source from the content-addressed store, hash-verified

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",

Callers

nothing calls this directly

Calls 12

parse_ws_orderMethod · 0.95
safe_dictMethod · 0.80
safe_string_2Method · 0.80
safe_string_lowerMethod · 0.80
safe_stringMethod · 0.80
safe_listMethod · 0.80
safe_integerMethod · 0.80
resolveMethod · 0.65
rangeFunction · 0.50
safe_marketMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected