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

Method parse_position_side

python/ccxt/bydfi.py:2063–2068  ·  view source on GitHub ↗
(self, side: Str)

Source from the content-addressed store, hash-verified

2061 })
2062
2063 def parse_position_side(self, side: Str) -> Str:
2064 sides = {
2065 'BUY': 'long',
2066 'SELL': 'short',
2067 }
2068 return self.safe_string(sides, side, side)
2069
2070 def fetch_position_history(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Position]:
2071 """

Callers 1

parse_positionMethod · 0.95

Calls 1

safe_stringMethod · 0.80

Tested by

no test coverage detected