Browse Source

Market

- HistoricalBars
Alexey Kim 2 weeks ago
parent
commit
9729b3dcc8
1 changed files with 3 additions and 0 deletions
  1. 3 0
      market.go

+ 3 - 0
market.go

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