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

Method parse_transaction_status

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

Source from the content-addressed store, hash-verified

5781 return self.parse_transactions(data, currency, since, limit)
5782
5783 def parse_transaction_status(self, status: Str):
5784 statuses = {
5785 # v3 deposit status
5786 '0': 'unknown',
5787 '1': 'pending',
5788 '2': 'processing',
5789 '3': 'ok',
5790 '4': 'fail',
5791 # v3 withdrawal status
5792 'SecurityCheck': 'pending',
5793 'Pending': 'pending',
5794 'success': 'ok',
5795 'CancelByUser': 'canceled',
5796 'Reject': 'rejected',
5797 'Fail': 'failed',
5798 'BlockchainConfirmed': 'ok',
5799 }
5800 return self.safe_string(statuses, status, status)
5801
5802 def parse_transaction(self, transaction: dict, currency: Currency = None) -> Transaction:
5803 #

Callers 1

parse_transactionMethod · 0.95

Calls 1

safe_stringMethod · 0.80

Tested by

no test coverage detected