Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion hyperliquid/exchange.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ def _slippage_price(
coin = self.info.name_to_coin[name]
if not px:
# Get midprice
px = float(self.info.all_mids()[coin])
dex = coin.split(":")[0] if ":" in coin else ""
px = float(self.info.all_mids(dex)[coin])

asset = self.info.coin_to_asset[coin]
# spot assets start at 10000
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "hyperliquid-python-sdk"
version = "0.20.0"
version = "0.20.1"
description = "SDK for Hyperliquid API trading with Python."
readme = "README.md"
authors = ["Hyperliquid <hello@hyperliquid.xyz>"]
Expand Down