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

Method parse_order

python/ccxt/delta.py:1825–1936  ·  view source on GitHub ↗
(self, order: dict, market: Market = None)

Source from the content-addressed store, hash-verified

1823 return self.safe_string(statuses, status, status)
1824
1825 def parse_order(self, order: dict, market: Market = None) -> Order:
1826 #
1827 # createOrder, cancelOrder, editOrder, fetchOpenOrders, fetchClosedOrders
1828 #
1829 # {
1830 # "average_fill_price":null,
1831 # "bracket_order":null,
1832 # "bracket_stop_loss_limit_price":null,
1833 # "bracket_stop_loss_price":null,
1834 # "bracket_take_profit_limit_price":null,
1835 # "bracket_take_profit_price":null,
1836 # "bracket_trail_amount":null,
1837 # "cancellation_reason":null,
1838 # "client_order_id":null,
1839 # "close_on_trigger":"false",
1840 # "commission":"0",
1841 # "created_at":"2020-11-16T02:38:26Z",
1842 # "id":152870626,
1843 # "limit_price":"10000",
1844 # "meta_data":{"source":"api"},
1845 # "order_type":"limit_order",
1846 # "paid_commission":"0",
1847 # "product_id":139,
1848 # "reduce_only":false,
1849 # "side":"buy",
1850 # "size":0,
1851 # "state":"open",
1852 # "stop_order_type":null,
1853 # "stop_price":null,
1854 # "stop_trigger_method":"mark_price",
1855 # "time_in_force":"gtc",
1856 # "trail_amount":null,
1857 # "unfilled_size":0,
1858 # "user_id":22142
1859 # }
1860 #
1861 # fetchOrder
1862 #
1863 # {
1864 # "id": 123,
1865 # "user_id": 453671,
1866 # "size": 10,
1867 # "unfilled_size": 2,
1868 # "side": "buy",
1869 # "order_type": "limit_order",
1870 # "limit_price": "59000",
1871 # "stop_order_type": "stop_loss_order",
1872 # "stop_price": "55000",
1873 # "paid_commission": "0.5432",
1874 # "commission": "0.5432",
1875 # "reduce_only": False,
1876 # "client_order_id": "my_signal_34521712",
1877 # "state": "open",
1878 # "created_at": "1725865012000000",
1879 # "product_id": 27,
1880 # "product_symbol": "BTCUSD"
1881 # }
1882 #

Callers 4

create_orderMethod · 0.95
edit_orderMethod · 0.95
cancel_orderMethod · 0.95
fetch_orderMethod · 0.95

Calls 11

parse_order_statusMethod · 0.95
safe_stringMethod · 0.80
findMethod · 0.80
safe_integer_productMethod · 0.80
safe_dictMethod · 0.80
safe_valueMethod · 0.80
replaceMethod · 0.80
safe_orderMethod · 0.80
parse8601Method · 0.45
safe_currency_codeMethod · 0.45
iso8601Method · 0.45

Tested by

no test coverage detected