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

Method mapTimeInForce

js/src/pacifica.js:2223–2238  ·  view source on GitHub ↗
(tifRaw)

Source from the content-addressed store, hash-verified

2221 return this.safeString(statuses, status, status);
2222 }
2223 mapTimeInForce(tifRaw) {
2224 const tifMap = {
2225 'GTC': 'GTC',
2226 'IOC': 'IOC',
2227 'PO': 'ALO',
2228 'POST_ONLY': 'ALO',
2229 'PO_TOB': 'TOB',
2230 'TOB': 'TOB',
2231 'ALO': 'ALO',
2232 };
2233 let tif = undefined;
2234 if (tifRaw !== undefined) {
2235 tif = tifRaw.toUpperCase();
2236 }
2237 return this.safeString(tifMap, tif, undefined);
2238 }
2239 mapSide(sideRaw) {
2240 const sideMap = {
2241 'sell': 'ask',

Callers 1

createOrderRequestMethod · 0.95

Calls 1

safeStringMethod · 0.45

Tested by

no test coverage detected