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

Method parseOrderStatus

ts/src/derive.ts:1850–1862  ·  view source on GitHub ↗
(status: Str)

Source from the content-addressed store, hash-verified

1848 }
1849
1850 parseOrderStatus (status: Str) {
1851 if (status !== undefined) {
1852 const statuses: Dict = {
1853 'open': 'open',
1854 'untriggered': 'open',
1855 'filled': 'closed',
1856 'cancelled': 'canceled',
1857 'expired': 'rejected',
1858 };
1859 return this.safeString (statuses, status, status);
1860 }
1861 return status;
1862 }
1863
1864 parseOrder (rawOrder: Dict, market: Market = undefined): Order {
1865 //

Callers 1

parseOrderMethod · 0.95

Calls 1

safeStringMethod · 0.45

Tested by

no test coverage detected