Fase 7: raccolta, collegamento e primo giudizio delle notizie, con il classificatore ONNX #97

Merged
Alby96 merged 5 commits from fase-7 into main 2026-11-15 15:34:41 +01:00
Showing only changes of commit 1aede2fc1c - Show all commits
+3 -1
View File
@@ -40,8 +40,10 @@ public sealed class MarketDataServerTests
StringAssert.Contains(bySource[MarketDataService.AlpacaSource].GetProperty("note").GetString(), "ALPACA_API_KEY_DEMO");
StringAssert.Contains(bySource[MarketDataService.OkxSource].GetProperty("note").GetString(), "3 nuovi");
Assert.AreEqual(JsonValueKind.Null, bySource[MarketDataService.OkxSource].GetProperty("lastError").ValueKind);
// The news of Phase 7 run on the same network: their feeds and the pinned classifier model, nothing else.
var news = Anubis.News.NewsStore.Defaults.Select(s => new Uri(s.Url).Host).Append(Anubis.News.ToneModel.Url.Host).ToHashSet();
Assert.IsTrue(network.Urls.All(u => u.Host is "eea.okx.com" or "data.binance.vision" or "nfs.faireconomy.media" or "www.ecb.europa.eu"
or "api.alternative.me" or "cdn.cboe.com"), string.Join(", ", network.Urls.Select(u => u.Host).Distinct()));
or "api.alternative.me" or "cdn.cboe.com" || news.Contains(u.Host)), string.Join(", ", network.Urls.Select(u => u.Host).Distinct()));
Assert.IsFalse(network.Urls.Any(u => u.Host.Contains("alpaca", StringComparison.Ordinal)), "no call to Alpaca without keys");
var report = await server.TextAsync("/api/data/quality?format=md");