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

Method parse_order_status

python/ccxt/bybit.py:3657–3683  ·  view source on GitHub ↗
(self, status: Str)

Source from the content-addressed store, hash-verified

3655 return self.parse_balance(response)
3656
3657 def parse_order_status(self, status: Str):
3658 statuses = {
3659 # v3 spot
3660 'NEW': 'open',
3661 'PARTIALLY_FILLED': 'open',
3662 'FILLED': 'closed',
3663 'CANCELED': 'canceled',
3664 'PENDING_CANCEL': 'open',
3665 'PENDING_NEW': 'open',
3666 'REJECTED': 'rejected',
3667 'PARTIALLY_FILLED_CANCELLED': 'closed', # context: https://github.com/ccxt/ccxt/issues/18685
3668 # v3 contract / unified margin / unified account
3669 'Created': 'open',
3670 'New': 'open',
3671 'Rejected': 'rejected', # order is triggered but failed upon being placed
3672 'PartiallyFilled': 'open',
3673 'PartiallyFilledCanceled': 'closed', # context: https://github.com/ccxt/ccxt/issues/18685
3674 'Filled': 'closed',
3675 'PendingCancel': 'open',
3676 'Cancelled': 'canceled',
3677 # below self line the status only pertains to conditional orders
3678 'Untriggered': 'open',
3679 'Deactivated': 'canceled',
3680 'Triggered': 'open',
3681 'Active': 'open',
3682 }
3683 return self.safe_string(statuses, status, status)
3684
3685 def parse_time_in_force(self, timeInForce: Str):
3686 timeInForces = {

Callers 1

parse_orderMethod · 0.95

Calls 1

safe_stringMethod · 0.80

Tested by

no test coverage detected