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

Method parseTimeInForce

ts/src/cryptocom.ts:2385–2392  ·  view source on GitHub ↗
(timeInForce: Str)

Source from the content-addressed store, hash-verified

2383 }
2384
2385 parseTimeInForce (timeInForce: Str) {
2386 const timeInForces: Dict = {
2387 'GOOD_TILL_CANCEL': 'GTC',
2388 'IMMEDIATE_OR_CANCEL': 'IOC',
2389 'FILL_OR_KILL': 'FOK',
2390 };
2391 return this.safeString (timeInForces, (timeInForce as string), timeInForce);
2392 }
2393
2394 parseOrder (order: Dict, market: Market = undefined): Order {
2395 //

Callers 1

parseOrderMethod · 0.95

Calls 1

safeStringMethod · 0.45

Tested by

no test coverage detected