docs/community/bounty-hyperliquid.md
To be discussed - Open to proposals from contributors
We're looking for contributors to add Hyperliquid exchange support to NOFX AI Trading System. Currently supports Binance Futures, seeking to expand to Hyperliquid perpetual contracts.
trader/hyperliquid_perpetual.go adapterBinanceFuturesClient{
"traders": [
{
"id": "hyperliquid_trader",
"name": "Hyperliquid AI Trader",
"exchange": "hyperliquid", // NEW
"hyperliquid_api_key": "xxx",
"hyperliquid_secret_key": "xxx",
"ai_model": "deepseek",
"initial_balance": 1000.0
}
]
}
Hyperliquid Resources:
NOFX Architecture:
trader/binance_futures.go as reference implementationtrader/auto_trader.goconfig.json structuretrader/
āāā binance_futures.go (existing reference)
āāā hyperliquid_perpetual.go (NEW - to implement)
āāā exchange_interface.go (NEW - unified interface)
config/
āāā config.go (UPDATE - add Hyperliquid config)
type ExchangeClient interface {
// Account
GetAccount() (*AccountInfo, error)
GetPositions() ([]*Position, error)
// Market Data
GetKlines(symbol, interval string, limit int) ([]*Kline, error)
GetTicker(symbol string) (*Ticker, error)
// Trading
CreateOrder(params *OrderParams) (*Order, error)
ClosePosition(symbol, side string) error
// Risk Management
SetLeverage(symbol string, leverage int) error
GetLiquidationPrice(position *Position) (float64, error)
}
Minimum Requirements:
Bonus Points:
trader/binance_futures.goReady to contribute? Comment below or start working and submit a PR!
Questions? Feel free to ask in the comments or on Telegram.