CryptoPrism news pipeline
Live pipeline that collects crypto news every 30 minutes, scores each article with FinBERT, maps it to coins and writes daily news features per coin.
30 minnews ingest cycle
From headline to a daily row per coin
- 01IngestSelf-hosted aggregator every 30 minutes, CryptoCompare once a weekday, deduplicated by URL.
- 02ScoreFinBERT scores title and body, plus a rule-based event type.
- 03Map to coinsCategory tags and coin names in the title become coin slugs.
- 04Daily featuresOne row per coin per day: sentiment, volume and event flags.
The model reads the daily rows. It never reads raw articles.

Leadership lens
The callpass
Self-host the open-source cryptocurrency.cv news aggregator on a small AWS EC2 server instead of paying for a news feed, and keep CryptoCompare only as a once-a-day extra.
The betpass
That a daily table of news features per coin, with fixed column names and one row per coin per day, was the right contract between the news side and the model side, before I knew how much the news would help the model.
The trade-offpass
The free CryptoCompare quota could not support hourly calls, so that job went from hourly to once a weekday. Coverage now depends on my own server staying up, which I accepted in exchange for no feed bill.
The outcomepass
The pipeline is live. Scheduled runs succeeded on 3 Dec 2026, and the daily report showed about 180 new articles from 10 sources in the last 24 hours. The volume is modest, and the report makes that visible instead of hiding it.
Coordinated
Built and run alone. The other side of the contract was my own model code, so the work was keeping table and column names stable for it.
Where this goes next
Add more sources and an alert when the 24-hour article count drops, using the daily report that already measures both.
01 The problem
News is text, a model needs numbers per coin per day
Crypto prices react to news: a hack, a listing, a regulation story. A ranking model cannot read headlines. It needs the same few numbers for every coin on every day, in a table it can join to price data. So the job was plain. Collect articles reliably, turn each one into a score and a coin, then roll that up into one row per coin per day.
Articles, last 24h
~180
on 3 Dec 2026
Sources, last 24h
10
from the daily report
Event types
8
rule-based classifier
02 Stage 1
Ingest: two sources into one table
Self-hosted aggregator
The main source is cryptocurrency.cv, an open-source news aggregator. I run it myself in Docker with Redis on a small AWS EC2 server, reachable only from the server itself. A systemd timer runs the ingester every 30 minutes. Each run takes up to 200 articles, fetches the full body for each one, and writes them to the cc_news table in Postgres. If the main feed is thin, the ingester tops it up with 12 fixed queries by category and source, such as bitcoin, defi, regulation, Cointelegraph and The Block.
CryptoCompare as an extra
A GitHub Actions job calls the CryptoCompare news API at 06:30 UTC on weekdays. It looks back one hour and reads up to 10 pages, about 500 articles. Two Investing.com feeds are skipped because they carry no article body. This job used to run every hour. The free quota could not support that, so I cut it back and made the self-hosted aggregator the main source.
Duplicates
Both sources write to the same table, and the URL is unique. The same story from two sources, or from two runs, is stored once.
Deploys without keys
The aggregator image lives in AWS ECR. A GitHub Actions workflow deploys to the server through GitHub OIDC and AWS SSM, so no long-lived AWS key or SSH key is stored anywhere.
03 Stages 2 and 3
Score each article, then find its coins
Sentiment
A daily GitHub Actions job at 00:30 UTC picks up every article not yet scored. FinBERT, a language model trained on financial text, scores the title and the body in batches of 64. Each score is positive minus negative, so it runs from -1 to +1. The article score weights the body at 60% and the title at 40%. Articles with a body under 300 characters are skipped as stubs.
Event type
A rule-based classifier reads the category tags and title keywords and labels each article with one of 8 event types: regulation, hack or exploit, adoption or partnership, macro, whale movement, ETF or institutional, liquidation, or other. No model is needed here. The tags already do most of the work.
Coin mapping
A coin mapper turns category tags into coin slugs, with 142 tags covering 141 coins. It also matches 67 coin names in titles to 63 coins. Broad market stories with no single coin are mapped to Bitcoin as a market proxy. Each source also gets a quality tier. Tier 1 outlets like CoinDesk and Reuters count double. Known low-quality farms count for less.
| Output table | Grain | What it holds |
|---|---|---|
| cc_news | one row per article | Title, body, source, tags, URL |
| FE_NEWS_SENTIMENT | one row per article | Title, body and combined scores, event type, coins, source tier |
| FE_NEWS_SIGNALS | one row per coin per day | Sentiment, volume, event flags, tier counts |
| FE_NEWS_EVENTS | one row per coin per day | Hours since each event type, event counts, news surprise |
04 Stage 4
Daily features: the contract with the model
The same daily job rolls article scores up into one row per coin per day. Sentiment is averaged over 1, 3 and 7 days, weighted by source tier. Momentum is the 1-day score minus the 7-day score. Volume is the article count, plus a z-score against the past 30 days, so a sudden burst of coverage stands out. Flags mark breaking news and regulation, security and adoption events. A second step writes event timing features, such as hours since the last hack or listing story for each coin. Writes are upserts keyed on coin and day, so any day can be rebuilt by running the job again.
Daily flow
Where the data goes
The CryptoPrism return-ranking models read these daily tables. They use 12 sentiment features and 10 event features next to price and technical features. Those model rankings were then traded on a futures testnet by the Trishula paper-trading bot. Both have their own pages. This page stops at the daily feature tables.
05 Operations
Measuring what actually arrives
A daily report at 06:30 UTC counts the articles fetched in the last 24 hours, the number of distinct sources, how many bodies pass the 300-character bar, and the hourly rate. It compares the rate with the period before the switch to the self-hosted aggregator in July 2026, and posts a short summary to Telegram. The report exists because counts in docs drift. Old notes claimed many more sources than the code ever fetched. The report measures what lands in the table.
What the numbers say today
On 3 Dec 2026 the report showed about 180 articles from 10 sources in 24 hours, roughly 5 an hour. That is enough for daily features on the larger coins. It is thin for small coins, which often have no news on a given day.
06 Stack