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

Method parseWithdrawalStatus

ts/src/cryptocom.ts:2503–2514  ·  view source on GitHub ↗
(status)

Source from the content-addressed store, hash-verified

2501 }
2502
2503 parseWithdrawalStatus (status) {
2504 const statuses: Dict = {
2505 '0': 'pending',
2506 '1': 'pending',
2507 '2': 'failed',
2508 '3': 'pending',
2509 '4': 'failed',
2510 '5': 'ok',
2511 '6': 'canceled',
2512 };
2513 return this.safeString (statuses, status, status);
2514 }
2515
2516 parseTransaction (transaction: Dict, currency: Currency = undefined): Transaction {
2517 //

Callers 1

parseTransactionMethod · 0.95

Calls 1

safeStringMethod · 0.45

Tested by

no test coverage detected