2
0
Quellcode durchsuchen

Market

- fix: Quote
Alexey Kim vor 2 Wochen
Ursprung
Commit
cee412b1ec
2 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 1 1
      strategy/alpaca/qqq15/strategy.go
  2. 1 1
      strategy/alpaca/qqq15_nodelay/strategy.go

+ 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