Alexey Kim 1 tydzień temu
rodzic
commit
7a9e73de1e

+ 3 - 0
strategy/alpaca/qqq15/strategy.go

@@ -84,7 +84,10 @@ func (s alpacaQQQ) Handle(market sentio.Market, ts time.Time, proba float64) ([]
 			return nil, err
 		}
 
+		fmt.Printf("Quotes: %s [BID: %f] [ASK: %s]\n", symbol, quote.BidPrice, quote.AskPrice)
+
 		if bars, err = market.HistoricalBars(symbol, time.Minute, nil); err == nil && len(bars) > 0 {
+			fmt.Printf("HistoricalBars: %s", bars[len(bars)-1].Datetime.Format(time.RFC3339))
 			h := make([]float64, len(bars))
 			l := make([]float64, len(bars))
 			c := make([]float64, len(bars))

+ 2 - 0
strategy/alpaca/qqq15_nodelay/strategy.go

@@ -84,6 +84,8 @@ func (s alpacaQQQ) Handle(market sentio.Market, ts time.Time, proba float64) ([]
 			return nil, err
 		}
 
+		fmt.Printf("Quotes: %s [BID: %f] [ASK: %s]\n", symbol, quote.BidPrice, quote.AskPrice)
+
 		if bars, err = market.HistoricalBars(symbol, time.Minute, nil); err == nil && len(bars) > 0 {
 			h := make([]float64, len(bars))
 			l := make([]float64, len(bars))