浏览代码

Market

- fix: Quote
Alexey Kim 2 周之前
父节点
当前提交
cee412b1ec
共有 2 个文件被更改,包括 2 次插入2 次删除
  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