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

Method parseOrderType

ts/src/phemex.ts:2305–2321  ·  view source on GitHub ↗
(type: Str)

Source from the content-addressed store, hash-verified

2303 }
2304
2305 parseOrderType (type: Str) {
2306 const types: Dict = {
2307 '1': 'market',
2308 '2': 'limit',
2309 '3': 'stop',
2310 '4': 'stopLimit',
2311 '5': 'market',
2312 '6': 'limit',
2313 '7': 'market',
2314 '8': 'market',
2315 '9': 'stopLimit',
2316 '10': 'market',
2317 'Limit': 'limit',
2318 'Market': 'market',
2319 };
2320 return this.safeString (types, type as string, type);
2321 }
2322
2323 parseTimeInForce (timeInForce: Str) {
2324 const timeInForces: Dict = {

Callers 5

parse_ws_swap_orderMethod · 0.95
parseTradeMethod · 0.95
parseSpotOrderMethod · 0.95
parseSwapOrderMethod · 0.95
parseWSSwapOrderMethod · 0.95

Calls 1

safeStringMethod · 0.45

Tested by

no test coverage detected