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

Method parseOrderStatus

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

Source from the content-addressed store, hash-verified

2083 }
2084
2085 parseOrderStatus (status: Str) {
2086 if (status !== undefined) {
2087 const statuses: Dict = {
2088 'NEW': 'open',
2089 'FILLED': 'closed',
2090 'CANCEL_SENT': 'canceled',
2091 'CANCEL_ALL_SENT': 'canceled',
2092 'CANCELLED': 'canceled',
2093 'PARTIAL_FILLED': 'open',
2094 'REJECTED': 'rejected',
2095 'INCOMPLETE': 'open',
2096 'COMPLETED': 'closed',
2097 };
2098 return this.safeString (statuses, status, status);
2099 }
2100 return status;
2101 }
2102
2103 /**
2104 * @method

Callers 2

parseOrderMethod · 0.95
parseWsOrderMethod · 0.95

Calls 1

safeStringMethod · 0.45

Tested by

no test coverage detected