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

Method parseTimeInForce

ts/src/phemex.ts:2323–2331  ·  view source on GitHub ↗
(timeInForce: Str)

Source from the content-addressed store, hash-verified

2321 }
2322
2323 parseTimeInForce (timeInForce: Str) {
2324 const timeInForces: Dict = {
2325 'GoodTillCancel': 'GTC',
2326 'PostOnly': 'PO',
2327 'ImmediateOrCancel': 'IOC',
2328 'FillOrKill': 'FOK',
2329 };
2330 return this.safeString (timeInForces, timeInForce as string, timeInForce);
2331 }
2332
2333 parseSpotOrder (order: Dict, market: Market = undefined) {
2334 //

Callers 3

parseSpotOrderMethod · 0.95
parseSwapOrderMethod · 0.95
parseWSSwapOrderMethod · 0.95

Calls 1

safeStringMethod · 0.45

Tested by

no test coverage detected