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

Method parse_order_status

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

Source from the content-addressed store, hash-verified

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

Callers 1

parse_orderMethod · 0.95

Calls 1

safe_stringMethod · 0.80

Tested by

no test coverage detected