xmaker: fix market data subscribe
Some checks failed
Go / build (1.21, 6.2) (push) Has been cancelled
golang-lint / lint (push) Has been cancelled

This commit is contained in:
c9s 2024-11-18 16:46:39 +08:00
parent 4fea25e00a
commit 8641640ee7
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -1737,7 +1737,7 @@ func (s *Strategy) CrossRun(
}) })
s.makerBook = types.NewStreamBook(s.Symbol, s.makerSession.ExchangeName) s.makerBook = types.NewStreamBook(s.Symbol, s.makerSession.ExchangeName)
s.makerBook.BindStream(s.makerSession.MarketDataStream) s.makerBook.BindStream(makerMarketStream)
if err := makerMarketStream.Connect(ctx); err != nil { if err := makerMarketStream.Connect(ctx); err != nil {
return err return err