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

Method parse_order_status

python/ccxt/binance.py:5544–5560  ·  view source on GitHub ↗
(self, status: Str)

Source from the content-addressed store, hash-verified

5542 return self.parse_orders(response)
5543
5544 def parse_order_status(self, status: Str):
5545 statuses = {
5546 'NEW': 'open',
5547 'PARTIALLY_FILLED': 'open',
5548 'ACCEPTED': 'open',
5549 'TRIGGERING': 'open',
5550 'FILLED': 'closed',
5551 'TRIGGERED': 'closed',
5552 'FINISHED': 'closed',
5553 'CANCELED': 'canceled',
5554 'CANCELLED': 'canceled',
5555 'PENDING_CANCEL': 'canceling', # currently unused
5556 'REJECTED': 'rejected',
5557 'EXPIRED': 'expired',
5558 'EXPIRED_IN_MATCH': 'expired',
5559 }
5560 return self.safe_string(statuses, status, status)
5561
5562 def parse_order_type_by_market(self, type: Str, marketType: Str):
5563 types = {}

Callers 1

parse_orderMethod · 0.95

Calls 1

safe_stringMethod · 0.80

Tested by

no test coverage detected