- each strategy must have its market
@@ -5,6 +5,7 @@ type Strategy interface {
Version() string
Model() string
+ MarketId() string
PositionSymbols() map[Side]string
ShouldClosePositions(portfolio Portfolio, proba float64) []string
@@ -25,6 +25,10 @@ func (s _ibkr) Model() string {
return "btc306"
}
+func (s _ibkr) MarketId() string {
+ return "ibkr"
+}
+
func (s _ibkr) PositionSymbols() map[sentio.Side]string {
return map[sentio.Side]string{
sentio.LONG: "521525019", // BITO