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

Method parseTransactionStatus

ts/src/phemex.ts:3662–3681  ·  view source on GitHub ↗
(status: Str)

Source from the content-addressed store, hash-verified

3660 }
3661
3662 parseTransactionStatus (status: Str) {
3663 const statuses: Dict = {
3664 'Success': 'ok',
3665 'Succeed': 'ok',
3666 'Rejected': 'failed',
3667 'Security check failed': 'failed',
3668 'SecurityCheckFailed': 'failed',
3669 'Expired': 'failed',
3670 'Address Risk': 'failed',
3671 'Security Checking': 'pending',
3672 'SecurityChecking': 'pending',
3673 'Pending Review': 'pending',
3674 'Pending Transfer': 'pending',
3675 'AmlCsApporve': 'pending',
3676 'New': 'pending',
3677 'Confirmed': 'pending',
3678 'Cancelled': 'canceled',
3679 };
3680 return this.safeString (statuses, status as string, status);
3681 }
3682
3683 parseTransaction (transaction: Dict, currency: Currency = undefined): Transaction {
3684 //

Callers 1

parseTransactionMethod · 0.95

Calls 1

safeStringMethod · 0.45

Tested by

no test coverage detected