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

Method convert_from_raw_quantity

python/ccxt/pro/bitrue.py:420–427  ·  view source on GitHub ↗
(self, symbol: str, rawQuantity)

Source from the content-addressed store, hash-verified

418 return result
419
420 def convert_from_raw_quantity(self, symbol: str, rawQuantity):
421 if rawQuantity is None:
422 return None
423 market = self.market(symbol)
424 if not market['contract']:
425 return rawQuantity
426 contractSize = self.safe_number(market, 'contractSize', 1)
427 return rawQuantity * contractSize
428
429 async def watch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={}) -> List[Trade]:
430 """

Callers 4

parse_ws_tradeMethod · 0.95
parse_ws_ohlcvMethod · 0.95
parse_ws_tickerMethod · 0.95

Calls 2

safe_numberMethod · 0.80
marketMethod · 0.45

Tested by

no test coverage detected