|
@@ -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
|