Skip to content

Commit 4cb3780

Browse files
committed
[Hyperliquid] fix markets fetch
1 parent 387e419 commit 4cb3780

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Trading/Exchange/hyperliquid/hyperliquid_exchange.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
import octobot_trading.exchanges as exchanges
1919
import octobot_trading.enums as trading_enums
20+
import octobot_trading.exchanges.connectors.ccxt.constants as ccxt_constants
2021

2122

2223
class HyperliquidConnector(exchanges.CCXTConnector):
@@ -51,6 +52,15 @@ def get_name(cls):
5152
def get_adapter_class(self):
5253
return HyperLiquidCCXTAdapter
5354

55+
def get_additional_connector_config(self):
56+
return {
57+
ccxt_constants.CCXT_OPTIONS: {
58+
"fetchMarkets": {
59+
"types": ["spot"], # only hyperliquid spot markets are supported
60+
}
61+
}
62+
}
63+
5464

5565
class HyperLiquidCCXTAdapter(exchanges.CCXTAdapter):
5666

0 commit comments

Comments
 (0)