We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea84213 commit 8baad66Copy full SHA for 8baad66
hyperliquid/exchange.py
@@ -91,7 +91,8 @@ def _slippage_price(
91
coin = self.info.name_to_coin[name]
92
if not px:
93
# Get midprice
94
- px = float(self.info.all_mids()[coin])
+ dex = coin.split(":")[0] if ":" in coin else ""
95
+ px = float(self.info.all_mids(dex)[coin])
96
97
asset = self.info.coin_to_asset[coin]
98
# spot assets start at 10000
pyproject.toml
@@ -5,7 +5,7 @@ build-backend = "poetry.core.masonry.api"
5
6
[tool.poetry]
7
name = "hyperliquid-python-sdk"
8
-version = "0.20.0"
+version = "0.20.1"
9
description = "SDK for Hyperliquid API trading with Python."
10
readme = "README.md"
11
authors = ["Hyperliquid <[email protected]>"]
0 commit comments