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

Method parseTimeInForce

js/src/coinbase.js:3378–3387  ·  view source on GitHub ↗
(timeInForce)

Source from the content-addressed store, hash-verified

3376 return this.safeString(types, type, type);
3377 }
3378 parseTimeInForce(timeInForce) {
3379 const timeInForces = {
3380 'GOOD_UNTIL_CANCELLED': 'GTC',
3381 'GOOD_UNTIL_DATE_TIME': 'GTD',
3382 'IMMEDIATE_OR_CANCEL': 'IOC',
3383 'FILL_OR_KILL': 'FOK',
3384 'UNKNOWN_TIME_IN_FORCE': undefined,
3385 };
3386 return this.safeString(timeInForces, timeInForce, timeInForce);
3387 }
3388 /**
3389 * @method
3390 * @name coinbase#cancelOrder

Callers 1

parseOrderMethod · 0.95

Calls 1

safeStringMethod · 0.45

Tested by

no test coverage detected