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

Method parse_order_status

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

Source from the content-addressed store, hash-verified

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

Callers 1

parse_orderMethod · 0.95

Calls 1

safe_stringMethod · 0.80

Tested by

no test coverage detected