Commit Graph

4 Commits

Author SHA1 Message Date
Codex
c32db97d57 feat(sentiment): complete pipeline overhaul with ONNX priority + LoRA retraining
- Added 30 new sources (5 RSS + 25 Telegram) for previously ZERO-coverage assets
- Fixed model loading priority: ONNX > LoRA v2 > PyTorch > Mock
- ONNX FinBERT (pre-trained on 1.2M financial docs) now PRIMARY - best for real-world text
- LoRA v2 models trained on 518 carefully labeled samples (balanced Bearish/Bullish/Neutral)
- Emotion LoRA v2 trained with weighted loss (greed/fear 2x, joy 1.5x)
- 30 new sources: STX, FET, XTZ, ENJ, ETC, TRX, ONG, DASH, LTC, ZIL, NEAR, APT, SUI, ICP
- Early stopping (patience=3) on both LoRA trainings
- Human-in-the-loop verification CLI tool created
- Disk-conscious: save_total_limit=1, adapters 6-8MB each

Pipeline now correctly classifies:
- BTC breaks 100k → +0.54 Bullish ✅
- Major hack → -0.23 Bearish ✅
- HODL → +0.91 Bullish ✅
- Rug pull → -0.30 Bearish ✅
- SEC sues → -0.30 Bearish ✅
- ETF approval → +0.32 Bullish ✅
- Whale accumulation → +0.31 Bullish ✅

Models: ONNX FinBERT (PRIORITY 1) + LoRA v2 adapters (6-8MB each)
Training data: 518 carefully labeled samples (190 real + 328 synthetic)
Early stopping (patience=3) on both FinBERT and DistilRoBERTa LoRA
Emotion LoRA v2: weighted loss (greed/fear 2x, joy 1.5x) + early stopping
2026-09-27 04:34:49 +02:00
Codex
342b20f5c4 feat(sentiment): add 30 new sources for uncovered trade assets
Add 5 RSS feeds + 25 Telegram web_crawl channels for assets with ZERO coverage:
- STX: BlockstackUpdate, StacksChat (missed +43% ONE, -5.65% STX)
- FET: fetch_ai_announcements, fetch_ai (missed +22.68%)
- XTZ: TezosAnnouncements, TezosPlatform (missed +3.85%)
- ENJ: enjininsights, ejsnews (missed +5.13%)
- ETC: etcnetwork, EtcHash + RSS (missed +8.52%)
- TRX: tronnetworkEN, Tron_TRX_News (missed -0.44%)
- ONG: ontologyannouncements, OntologyNetwork + RSS (missed +6.37%)
- DASH: dashnewsbot, dash_chat + RSS (missed +6.45%)
- LTC: litecoin_crypto, litecoin_fundamentals + RSS (missed +5.45%)
- ZIL: zilliqann, zilliqachat, ZilliqaDevs + RSS (missed -2.88%, 9x SHORT loss)
- NEAR: NearAnnouncements (missed +19.26%)
- APT: AptosAnnouncements (missed +10.35%)
- SUI: SuiAnnouncements (missed +10.87%)
- ICP: dfinity (missed +10.86%)

All sources verified: RSS feeds return valid XML, Telegram public preview URLs return HTML.
Coverage for trade assets: 40% → ~95%+
2026-09-25 14:47:44 +02:00
Codex
c0445e60ea feat(sentiment): add trade asset aliases & known entities; add Glassnode/WSJ RSS sources
- Added 15 trade assets (ZIL, ONG, ONE, STX, ALGO, DASH, LTC, FET, XTZ, ENJ, XLM, ETC, TRX) to asset_aliases.yaml
- Added same assets with metadata to known_entities.yaml (chain, type, market_cap_rank)
- Added Glassnode Insights (0.85 cred) and WSJ Crypto (0.85 cred) to sources.yaml
- Trade log analysis shows these small-caps had zero news coverage - aliases enable entity extraction
2026-09-23 10:00:37 +02:00
Codex
a276aeaded Add sentiment_engine with CryptoSentimentCalibrator fixes - improved keyword lists, lowered FinBERT threshold, added neutral handling 2026-09-14 13:30:05 +02:00