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

Method parseTransferStatus

ts/src/woo.ts:3008–3017  ·  view source on GitHub ↗
(status: Str)

Source from the content-addressed store, hash-verified

3006 }
3007
3008 parseTransferStatus (status: Str): Str {
3009 const statuses: Dict = {
3010 'NEW': 'pending',
3011 'CONFIRMING': 'pending',
3012 'PROCESSING': 'pending',
3013 'COMPLETED': 'ok',
3014 'CANCELED': 'canceled',
3015 };
3016 return this.safeString (statuses, (status as string), status);
3017 }
3018
3019 /**
3020 * @method

Callers 1

parseTransferMethod · 0.95

Calls 1

safeStringMethod · 0.45

Tested by

no test coverage detected