Browse Source

Market

- fix: Quote
Alexey Kim 2 weeks ago
parent
commit
cee412b1ec
2 changed files with 2 additions and 2 deletions
  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() {
 	for side, symbol := range s.PositionSymbols() {
 		var (
 		var (
 			position sentio.Position
 			position sentio.Position
-			quote    sentio.Quote
+			quote    *sentio.Quote
 			bars     []sentio.Bar
 			bars     []sentio.Bar
 			sl       float64
 			sl       float64
 			ok       bool
 			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() {
 	for side, symbol := range s.PositionSymbols() {
 		var (
 		var (
 			position sentio.Position
 			position sentio.Position
-			quote    sentio.Quote
+			quote    *sentio.Quote
 			bars     []sentio.Bar
 			bars     []sentio.Bar
 			sl       float64
 			sl       float64
 			ok       bool
 			ok       bool