FetchQuantDataBatch batch fetches quantitative data
(symbols []string)
| 1090 | |
| 1091 | // FetchQuantDataBatch batch fetches quantitative data |
| 1092 | func (e *StrategyEngine) FetchQuantDataBatch(symbols []string) map[string]*QuantData { |
| 1093 | result := make(map[string]*QuantData) |
| 1094 | |
| 1095 | if !e.config.Indicators.EnableQuantData { |
| 1096 | return result |
| 1097 | } |
| 1098 | |
| 1099 | for _, symbol := range symbols { |
| 1100 | data, err := e.FetchQuantData(symbol) |
| 1101 | if err != nil { |
| 1102 | logger.Infof("⚠️ Failed to fetch quantitative data for %s: %v", symbol, err) |
| 1103 | continue |
| 1104 | } |
| 1105 | if data != nil { |
| 1106 | result[symbol] = data |
| 1107 | } |
| 1108 | } |
| 1109 | |
| 1110 | return result |
| 1111 | } |
| 1112 | |
| 1113 | func (e *StrategyEngine) FetchVergexDataBatch(ctx context.Context, symbols []string) map[string]*vergex.MarketAnalysis { |
| 1114 | result := make(map[string]*vergex.MarketAnalysis) |
no test coverage detected