MCPcopy Create free account
hub / github.com/NoFxAiOS/nofx / FetchQuantDataBatch

Method FetchQuantDataBatch

kernel/engine.go:1092–1111  ·  view source on GitHub ↗

FetchQuantDataBatch batch fetches quantitative data

(symbols []string)

Source from the content-addressed store, hash-verified

1090
1091// FetchQuantDataBatch batch fetches quantitative data
1092func (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
1113func (e *StrategyEngine) FetchVergexDataBatch(ctx context.Context, symbols []string) map[string]*vergex.MarketAnalysis {
1114 result := make(map[string]*vergex.MarketAnalysis)

Callers 2

handleStrategyTestRunMethod · 0.95
buildTradingContextMethod · 0.80

Calls 2

FetchQuantDataMethod · 0.95
InfofFunction · 0.92

Tested by

no test coverage detected