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

Method parse_side

python/ccxt/exmo.py:1871–1888  ·  view source on GitHub ↗
(self, orderType)

Source from the content-addressed store, hash-verified

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

Callers 1

parse_orderMethod · 0.95

Calls 1

safe_stringMethod · 0.80

Tested by

no test coverage detected