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

Method parse_order

python/ccxt/bydfi.py:1674–1783  ·  view source on GitHub ↗
(self, order: dict, market: Market = None)

Source from the content-addressed store, hash-verified

1672 return self.extend(request, params)
1673
1674 def parse_order(self, order: dict, market: Market = None) -> Order:
1675 #
1676 # createOrder, fetchOpenOrders, fetchOpenOrder
1677 # {
1678 # "wallet": "W001",
1679 # "symbol": "ETH-USDT",
1680 # "orderId": "7408875768086683648",
1681 # "clientOrderId": "7408875768086683648",
1682 # "price": "1000",
1683 # "origQty": "10",
1684 # "avgPrice": "0",
1685 # "executedQty": "0",
1686 # "orderType": "LIMIT",
1687 # "side": "BUY",
1688 # "status": "CANCELED",
1689 # "stopPrice": null,
1690 # "activatePrice": null,
1691 # "timeInForce": null,
1692 # "workingType": "CONTRACT_PRICE",
1693 # "positionSide": "BOTH",
1694 # "priceProtect": False,
1695 # "reduceOnly": False,
1696 # "closePosition": False,
1697 # "createTime": "1766413633367",
1698 # "updateTime": "1766413633370"
1699 # }
1700 #
1701 # fetchCanceledAndClosedOrders
1702 # {
1703 # "orderId": "7408919189505597440",
1704 # "orderType": "MARKET",
1705 # "symbol": "ETH-USDC",
1706 # "origQty": "1",
1707 # "side": "BUY",
1708 # "positionSide": "BOTH",
1709 # "positionAvgPrice": null,
1710 # "positionVolume": null,
1711 # "positionType": null,
1712 # "reduceOnly": False,
1713 # "closePosition": False,
1714 # "action": null,
1715 # "price": "3032.45",
1716 # "avgPrice": "3032.45",
1717 # "brkPrice": null,
1718 # "dealVolume": null,
1719 # "status": "2",
1720 # "wallet": "W001",
1721 # "alias": null,
1722 # "contractId": null,
1723 # "mtime": "1766423985842",
1724 # "ctime": "1766423985840",
1725 # "fixedPrice": null,
1726 # "direction": null,
1727 # "triggerPrice": null,
1728 # "priceType": null,
1729 # "basePrecision": "8",
1730 # "baseShowPrecision": "2",
1731 # "strategyType": null,

Callers 3

create_orderMethod · 0.95
edit_orderMethod · 0.95
fetch_open_orderMethod · 0.95

Calls 13

parse_order_statusMethod · 0.95
parse_order_typeMethod · 0.95
safe_stringMethod · 0.80
safe_integer_2Method · 0.80
safe_string_nMethod · 0.80
safe_numberMethod · 0.80
safe_orderMethod · 0.80
safe_boolMethod · 0.80
safe_string_lowerMethod · 0.80
omit_zeroMethod · 0.80
safe_marketMethod · 0.45

Tested by

no test coverage detected