@@ -25,8 +25,7 @@ type Market interface {
Portfolio() (Portfolio, error)
PortfolioHistory() ([]PortfolioRecord, error)
- Cash() (float64, error)
- Equity() (float64, error)
+ Account() (MarketAccount, error)
MaxBudget() float64
Cooldown() uint8
}
@@ -0,0 +1,9 @@
+package sentio
+
+type MarketAccount interface {
+ GetId() string
+ GetName() string
+ Cash() (float64, error)
+ Equity() (float64, error)
+}