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

Method parse_order_status

python/ccxt/async_support/derive.py:1788–1798  ·  view source on GitHub ↗
(self, status: Str)

Source from the content-addressed store, hash-verified

1786 return self.safe_string(timeInForces, timeInForce)
1787
1788 def parse_order_status(self, status: Str):
1789 if status is not None:
1790 statuses = {
1791 'open': 'open',
1792 'untriggered': 'open',
1793 'filled': 'closed',
1794 'cancelled': 'canceled',
1795 'expired': 'rejected',
1796 }
1797 return self.safe_string(statuses, status, status)
1798 return status
1799
1800 def parse_order(self, rawOrder: dict, market: Market = None) -> Order:
1801 #

Callers 1

parse_orderMethod · 0.95

Calls 1

safe_stringMethod · 0.80

Tested by

no test coverage detected