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

Method parse_order_status

python/ccxt/extended.py:3087–3098  ·  view source on GitHub ↗
(self, status: Str)

Source from the content-addressed store, hash-verified

3085 return self.filter_by_symbol_since_limit(canceledOrders, symbol, since, limit)
3086
3087 def parse_order_status(self, status: Str) -> Str:
3088 statuses = {
3089 'NEW': 'open',
3090 'PARTIALLY_FILLED': 'open',
3091 'UNTRIGGERED': 'open',
3092 'TRIGGERED': 'open',
3093 'FILLED': 'closed',
3094 'CANCELLED': 'canceled',
3095 'REJECTED': 'rejected',
3096 'EXPIRED': 'expired',
3097 }
3098 return self.safe_string(statuses, status, status)
3099
3100 def parse_order(self, order, market: Market = None) -> Order:
3101 #

Callers 1

parse_orderMethod · 0.95

Calls 1

safe_stringMethod · 0.80

Tested by

no test coverage detected