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

Method parse_order_status

python/ccxt/xt.py:3504–3520  ·  view source on GitHub ↗
(self, status)

Source from the content-addressed store, hash-verified

3502 }, market)
3503
3504 def parse_order_status(self, status):
3505 statuses = {
3506 'NEW': 'open',
3507 'PARTIALLY_FILLED': 'open',
3508 'FILLED': 'closed',
3509 'CANCELED': 'canceled',
3510 'REJECTED': 'rejected',
3511 'EXPIRED': 'expired',
3512 'UNFINISHED': 'open',
3513 'NOT_TRIGGERED': 'open',
3514 'TRIGGERING': 'open',
3515 'TRIGGERED': 'closed',
3516 'USER_REVOCATION': 'canceled',
3517 'PLATFORM_REVOCATION': 'rejected',
3518 'HISTORY': 'expired',
3519 }
3520 return self.safe_string(statuses, status, status)
3521
3522 def fetch_ledger(self, code: Str = None, since: Int = None, limit: Int = None, params={}) -> List[LedgerEntry]:
3523 """

Callers 1

parse_orderMethod · 0.95

Calls 1

safe_stringMethod · 0.80

Tested by

no test coverage detected