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

Method parseOrderType

js/src/coinbase.js:3366–3377  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

3364 return this.safeString(statuses, status, status);
3365 }
3366 parseOrderType(type) {
3367 if (type === 'UNKNOWN_ORDER_TYPE') {
3368 return undefined;
3369 }
3370 const types = {
3371 'MARKET': 'market',
3372 'LIMIT': 'limit',
3373 'STOP': 'limit',
3374 'STOP_LIMIT': 'limit',
3375 };
3376 return this.safeString(types, type, type);
3377 }
3378 parseTimeInForce(timeInForce) {
3379 const timeInForces = {
3380 'GOOD_UNTIL_CANCELLED': 'GTC',

Callers 1

parseOrderMethod · 0.95

Calls 1

safeStringMethod · 0.45

Tested by

no test coverage detected