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

Method parse_order_status

python/ccxt/foxbit.py:1671–1680  ·  view source on GitHub ↗
(self, status: Str)

Source from the content-addressed store, hash-verified

1669 }, market)
1670
1671 def parse_order_status(self, status: Str):
1672 statuses = {
1673 'PARTIALLY_CANCELED': 'open',
1674 'ACTIVE': 'open',
1675 'PARTIALLY_FILLED': 'open',
1676 'FILLED': 'closed',
1677 'PENDING_CANCEL': 'canceled',
1678 'CANCELED': 'canceled',
1679 }
1680 return self.safe_string(statuses, status, status)
1681
1682 def parse_order(self, order, market=None) -> Order:
1683 symbol = self.safe_string(order, 'market_symbol')

Callers 1

parse_orderMethod · 0.95

Calls 1

safe_stringMethod · 0.80

Tested by

no test coverage detected