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

Method parse_transaction_status

python/ccxt/phemex.py:3471–3489  ·  view source on GitHub ↗
(self, status: Str)

Source from the content-addressed store, hash-verified

3469 return self.parse_transactions(data, currency, since, limit)
3470
3471 def parse_transaction_status(self, status: Str):
3472 statuses = {
3473 'Success': 'ok',
3474 'Succeed': 'ok',
3475 'Rejected': 'failed',
3476 'Security check failed': 'failed',
3477 'SecurityCheckFailed': 'failed',
3478 'Expired': 'failed',
3479 'Address Risk': 'failed',
3480 'Security Checking': 'pending',
3481 'SecurityChecking': 'pending',
3482 'Pending Review': 'pending',
3483 'Pending Transfer': 'pending',
3484 'AmlCsApporve': 'pending',
3485 'New': 'pending',
3486 'Confirmed': 'pending',
3487 'Cancelled': 'canceled',
3488 }
3489 return self.safe_string(statuses, status, status)
3490
3491 def parse_transaction(self, transaction: dict, currency: Currency = None) -> Transaction:
3492 #

Callers 1

parse_transactionMethod · 0.95

Calls 1

safe_stringMethod · 0.80

Tested by

no test coverage detected