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