Skip to content

Commit

Permalink
fix min_qty hyperliquid
Browse files Browse the repository at this point in the history
  • Loading branch information
enarjord committed Sep 26, 2024
1 parent 927b78b commit aac585a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/exchanges/hyperliquid.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ def set_market_specific_settings(self):
self.min_costs[symbol] = (
10.1 if elm["limits"]["cost"]["min"] is None else elm["limits"]["cost"]["min"]
)
self.qty_steps[symbol] = round_(10 ** -elm["precision"]["amount"], 0.0000000001)
self.min_qtys[symbol] = (
elm["precision"]["amount"]
self.qty_steps[symbol]
if elm["limits"]["amount"]["min"] is None
else elm["limits"]["amount"]["min"]
)
self.qty_steps[symbol] = round_(10 ** -elm["precision"]["amount"], 0.0000000001)
self.price_steps[symbol] = round_(10 ** -elm["precision"]["price"], 0.0000000001)
self.c_mults[symbol] = elm["contractSize"]
self.max_leverage[symbol] = (
Expand Down

0 comments on commit aac585a

Please sign in to comment.