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

Method parseOrderStatus

ts/src/modetrade.ts:1431–1447  ·  view source on GitHub ↗
(status: Str)

Source from the content-addressed store, hash-verified

1429 }
1430
1431 parseOrderStatus (status: Str) {
1432 if (status !== undefined) {
1433 const statuses: Dict = {
1434 'NEW': 'open',
1435 'FILLED': 'closed',
1436 'CANCEL_SENT': 'canceled',
1437 'CANCEL_ALL_SENT': 'canceled',
1438 'CANCELLED': 'canceled',
1439 'PARTIAL_FILLED': 'open',
1440 'REJECTED': 'rejected',
1441 'INCOMPLETE': 'open',
1442 'COMPLETED': 'closed',
1443 };
1444 return this.safeString (statuses, status, status);
1445 }
1446 return status;
1447 }
1448
1449 parseOrderType (type: Str) {
1450 const types: Dict = {

Callers 2

parseOrderMethod · 0.95
parseWsOrderMethod · 0.95

Calls 1

safeStringMethod · 0.45

Tested by

no test coverage detected