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

Method parse_order_status

python/ccxt/async_support/cex.py:1116–1127  ·  view source on GitHub ↗
(self, status: Str)

Source from the content-addressed store, hash-verified

1114 return result[0]
1115
1116 def parse_order_status(self, status: Str):
1117 statuses = {
1118 'PENDING_NEW': 'open',
1119 'NEW': 'open',
1120 'PARTIALLY_FILLED': 'open',
1121 'FILLED': 'closed',
1122 'EXPIRED': 'expired',
1123 'REJECTED': 'rejected',
1124 'PENDING_CANCEL': 'canceling',
1125 'CANCELLED': 'canceled',
1126 }
1127 return self.safe_string(statuses, status, status)
1128
1129 def parse_order(self, order: dict, market: Market = None) -> Order:
1130 #

Callers 1

parse_orderMethod · 0.95

Calls 1

safe_stringMethod · 0.80

Tested by

no test coverage detected