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

Method parse_order_status

python/ccxt/bitrue.py:1813–1825  ·  view source on GitHub ↗
(self, status: Str)

Source from the content-addressed store, hash-verified

1811 return self.parse_trades(response, market, since, limit)
1812
1813 def parse_order_status(self, status: Str):
1814 statuses = {
1815 'INIT': 'open',
1816 'PENDING_CREATE': 'open',
1817 'NEW': 'open',
1818 'PARTIALLY_FILLED': 'open',
1819 'FILLED': 'closed',
1820 'CANCELED': 'canceled',
1821 'PENDING_CANCEL': 'canceling', # currently unused
1822 'REJECTED': 'rejected',
1823 'EXPIRED': 'expired',
1824 }
1825 return self.safe_string(statuses, status, status)
1826
1827 def parse_order(self, order: dict, market: Market = None) -> Order:
1828 #

Callers 1

parse_orderMethod · 0.95

Calls 1

safe_stringMethod · 0.80

Tested by

no test coverage detected