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

Method amount_to_precision

python/ccxt/hyperliquid.py:1527–1529  ·  view source on GitHub ↗
(self, symbol, amount)

Source from the content-addressed store, hash-verified

1525 return self.parse_trades(response, market, since, limit)
1526
1527 def amount_to_precision(self, symbol, amount):
1528 market = self.market(symbol)
1529 return self.decimal_to_precision(amount, ROUND, market['precision']['amount'], self.precisionMode, self.paddingMode)
1530
1531 def price_to_precision(self, symbol: str, price) -> str:
1532 market = self.market(symbol)

Callers 4

create_twap_orderMethod · 0.95
create_order_requestMethod · 0.95
edit_orders_requestMethod · 0.95
modify_margin_helperMethod · 0.95

Calls 1

marketMethod · 0.95

Tested by

no test coverage detected