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

Method get_price

python/ccxt/bybit.py:1656–1663  ·  view source on GitHub ↗
(self, symbol: str, price: str)

Source from the content-addressed store, hash-verified

1654 return amountString
1655
1656 def get_price(self, symbol: str, price: str):
1657 if price is None:
1658 return price
1659 market = self.market(symbol)
1660 emptyPrecisionPrice = (market['precision']['price'] is None)
1661 if not emptyPrecisionPrice:
1662 return self.price_to_precision(symbol, price)
1663 return price
1664
1665 def get_cost(self, symbol: str, cost: str):
1666 market = self.market(symbol)

Callers 2

create_order_requestMethod · 0.95
edit_order_requestMethod · 0.95

Calls 2

marketMethod · 0.45
price_to_precisionMethod · 0.45

Tested by

no test coverage detected