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

Method parseSide

js/src/exmo.js:1958–1976  ·  view source on GitHub ↗
(orderType)

Source from the content-addressed store, hash-verified

1956 return this.safeString(statuses, status, status);
1957 }
1958 parseSide(orderType) {
1959 const side = {
1960 'limit_buy': 'buy',
1961 'limit_sell': 'sell',
1962 'market_buy': 'buy',
1963 'market_sell': 'sell',
1964 'stop_buy': 'buy',
1965 'stop_sell': 'sell',
1966 'stop_limit_buy': 'buy',
1967 'stop_limit_sell': 'sell',
1968 'trailing_stop_buy': 'buy',
1969 'trailing_stop_sell': 'sell',
1970 'stop_market_sell': 'sell',
1971 'stop_market_buy': 'buy',
1972 'buy': 'buy',
1973 'sell': 'sell',
1974 };
1975 return this.safeString(side, orderType, orderType);
1976 }
1977 parseOrder(order, market = undefined) {
1978 //
1979 // fetchOrders, fetchOpenOrders, fetchClosedOrders, fetchCanceledOrders

Callers 3

parseOrderMethod · 0.95
parseWsOrderMethod · 0.95
parseWsTradeMethod · 0.95

Calls 1

safeStringMethod · 0.45

Tested by

no test coverage detected