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

Method parseTimeInForce

ts/src/modetrade.ts:1422–1429  ·  view source on GitHub ↗
(timeInForce: Str)

Source from the content-addressed store, hash-verified

1420 }
1421
1422 parseTimeInForce (timeInForce: Str) {
1423 const timeInForces: Dict = {
1424 'ioc': 'IOC',
1425 'fok': 'FOK',
1426 'post_only': 'PO',
1427 };
1428 return this.safeString (timeInForces, timeInForce);
1429 }
1430
1431 parseOrderStatus (status: Str) {
1432 if (status !== undefined) {

Callers 1

parseOrderMethod · 0.95

Calls 1

safeStringMethod · 0.45

Tested by

no test coverage detected