fix: HL testnet - add API wallet address to signed orders, 3-param constructor

This commit is contained in:
jackyu66git
2026-05-04 15:39:31 +08:00
parent 30436bbe75
commit c5c4c7394f
3 changed files with 17 additions and 4 deletions
+1 -1
View File
@@ -191,7 +191,7 @@ func NewTrader(cfg *Config, database *db.DB) *Trader {
if cfg.BitgetAPIKey != "" {
bt = exchange.NewBitgetTrade(cfg.BitgetAPIKey, cfg.BitgetAPISecret, cfg.BitgetPassphrase)
}
hl, _ := exchange.NewHyperLiquidTrade(cfg.HLPrivateKey, cfg.HLAddress)
hl, _ := exchange.NewHyperLiquidTrade(cfg.HLPrivateKey, cfg.HLAddress, cfg.HLAPIAddress)
t := &Trader{
cfg: cfg,