Jelajahi Sumber

Market

- fix: Quote
Alexey Kim 2 minggu lalu
induk
melakukan
cee412b1ec

+ 1 - 1
strategy/alpaca/qqq15/strategy.go

@@ -65,7 +65,7 @@ func (s alpacaQQQ) Handle(market sentio.Market, ts time.Time, proba float64) ([]
 	for side, symbol := range s.PositionSymbols() {
 		var (
 			position sentio.Position
-			quote    sentio.Quote
+			quote    *sentio.Quote
 			bars     []sentio.Bar
 			sl       float64
 			ok       bool

+ 1 - 1
strategy/alpaca/qqq15_nodelay/strategy.go

@@ -65,7 +65,7 @@ func (s alpacaQQQ) Handle(market sentio.Market, ts time.Time, proba float64) ([]
 	for side, symbol := range s.PositionSymbols() {
 		var (
 			position sentio.Position
-			quote    sentio.Quote
+			quote    *sentio.Quote
 			bars     []sentio.Bar
 			sl       float64
 			ok       bool