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

Method parse_transaction_status

python/ccxt/foxbit.py:1748–1766  ·  view source on GitHub ↗
(self, status: Str)

Source from the content-addressed store, hash-verified

1746 }
1747
1748 def parse_transaction_status(self, status: Str):
1749 statuses = {
1750 # BOTH
1751 'SUBMITTING': 'pending',
1752 'SUBMITTED': 'pending',
1753 'REJECTED': 'failed',
1754 # DEPOSIT-SPECIFIC
1755 'CANCELLED': 'canceled',
1756 'ACCEPTED': 'ok',
1757 'WARNING': 'pending',
1758 'UNBLOCKED': 'pending',
1759 'BLOCKED': 'pending',
1760 # WITHDRAWAL-SPECIFIC
1761 'PROCESSING': 'pending',
1762 'CANCELED': 'canceled',
1763 'FAILED': 'failed',
1764 'DONE': 'ok',
1765 }
1766 return self.safe_string(statuses, status, status)
1767
1768 def parse_transaction(self, transaction, currency: Currency = None, since: Int = None, limit: Int = None) -> Transaction:
1769 cryptoDetails = self.safe_dict(transaction, 'details_crypto')

Callers 1

parse_transactionMethod · 0.95

Calls 1

safe_stringMethod · 0.80

Tested by

no test coverage detected