(tifRaw)
| 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', |
no test coverage detected