(type)
| 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', |