strategy.go 315 B

123456789101112131415161718192021
  1. package util
  2. import "git.beejay.kim/Gshopper/sentio"
  3. func Symbols(strategy sentio.Strategy) []string {
  4. var symbols []string
  5. if strategy == nil {
  6. return nil
  7. }
  8. for side, s := range strategy.PositionSymbols() {
  9. if sentio.BASE == side {
  10. continue
  11. }
  12. symbols = append(symbols, s)
  13. }
  14. return symbols
  15. }