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

Method parse_transaction_status

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

Source from the content-addressed store, hash-verified

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

Callers 1

parse_transactionMethod · 0.95

Calls 1

safe_stringMethod · 0.80

Tested by

no test coverage detected