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

Method parse_order_status

python/ccxt/bydfi.py:1807–1818  ·  view source on GitHub ↗
(self, status: Str)

Source from the content-addressed store, hash-verified

1805 return self.safe_string(timeInForces, timeInForce, timeInForce)
1806
1807 def parse_order_status(self, status: Str) -> Str:
1808 statuses = {
1809 'NEW': 'open',
1810 'PARTIALLY_FILLED': 'open',
1811 'FILLED': 'closed',
1812 'EXPIRED': 'canceled',
1813 'PART_FILLED_CANCELLED': 'canceled',
1814 'CANCELED': 'canceled',
1815 '2': 'closed',
1816 '4': 'canceled',
1817 }
1818 return self.safe_string(statuses, status, status)
1819
1820 def set_leverage(self, leverage: int, symbol: Str = None, params={}):
1821 """

Callers 1

parse_orderMethod · 0.95

Calls 1

safe_stringMethod · 0.80

Tested by

no test coverage detected