2
0

strategy.go 272 B

123456789101112
  1. package sentio
  2. type Strategy interface {
  3. Name() string
  4. Version() string
  5. Model() string
  6. PositionSymbols() map[Side]string
  7. ShouldClosePositions(portfolio Portfolio, proba float64) []string
  8. ShouldOpenPosition(portfolio Portfolio, proba float64) (*string, float64)
  9. }