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

Method parseOrderStatus

ts/src/cryptocom.ts:2374–2383  ·  view source on GitHub ↗
(status: Str)

Source from the content-addressed store, hash-verified

2372 }
2373
2374 parseOrderStatus (status: Str) {
2375 const statuses: Dict = {
2376 'ACTIVE': 'open',
2377 'CANCELED': 'canceled',
2378 'FILLED': 'closed',
2379 'REJECTED': 'rejected',
2380 'EXPIRED': 'expired',
2381 };
2382 return this.safeString (statuses, (status as string), status);
2383 }
2384
2385 parseTimeInForce (timeInForce: Str) {
2386 const timeInForces: Dict = {

Callers 1

parseOrderMethod · 0.95

Calls 1

safeStringMethod · 0.45

Tested by

no test coverage detected