2
0
Pārlūkot izejas kodu

Market

- HistoricalBars
Alexey Kim 2 nedēļas atpakaļ
vecāks
revīzija
9729b3dcc8
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  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