strategy.go 320 B

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