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

Method parse_side

python/ccxt/async_support/exmo.py:1872–1889  ·  view source on GitHub ↗
(self, orderType)

Source from the content-addressed store, hash-verified

1870 return self.safe_string(statuses, status, status)
1871
1872 def parse_side(self, orderType):
1873 side = {
1874 'limit_buy': 'buy',
1875 'limit_sell': 'sell',
1876 'market_buy': 'buy',
1877 'market_sell': 'sell',
1878 'stop_buy': 'buy',
1879 'stop_sell': 'sell',
1880 'stop_limit_buy': 'buy',
1881 'stop_limit_sell': 'sell',
1882 'trailing_stop_buy': 'buy',
1883 'trailing_stop_sell': 'sell',
1884 'stop_market_sell': 'sell',
1885 'stop_market_buy': 'buy',
1886 'buy': 'buy',
1887 'sell': 'sell',
1888 }
1889 return self.safe_string(side, orderType, orderType)
1890
1891 def parse_order(self, order: dict, market: Market = None) -> Order:
1892 #

Callers 1

parse_orderMethod · 0.95

Calls 1

safe_stringMethod · 0.80

Tested by

no test coverage detected