You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

25 lines
565 B

package trading
import (
"sig-pub/api/pb"
"sig-pub/pkg/data/entity"
"sig-pub/pkg/strategy"
"sig-pub/pkg/types"
)
type TradingPlan struct {
PlanId int64 `json:"planId"`
Exchange pb.ExchangeType `json:"exchange"`
InstId string `json:"instId"`
Interval types.Interval `json:"interval"`
StrategyName string `json:"strategyName"`
}
func NewTradingPlan(plan entity.TradingPlan, strategy strategy.ISigStrategy) *TradingPlan {
return &TradingPlan{}
}
func (plan *TradingPlan) Update() (err error) {
return
}