瀏覽代碼

Market

- HistoricalBars
Alexey Kim 2 周之前
父節點
當前提交
9729b3dcc8
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      market.go

+ 3 - 0
market.go

@@ -3,6 +3,7 @@ package sentio
 import (
 	"context"
 	"errors"
+	"time"
 )
 
 var (
@@ -25,6 +26,8 @@ type Market interface {
 	Portfolio() (Portfolio, error)
 	PortfolioHistory() ([]PortfolioRecord, error)
 
+	HistoricalBars(symbol string, interval time.Duration, from *time.Time) ([]Bar, error)
+
 	Account() (MarketAccount, error)
 	MaxBudget() float64
 	Cooldown() uint8