Download the exact captured file
---
name: daily-brief
description: >-
Gives the day's market stories for US stocks and crypto in a few lines each: what happened, the stocks or coins it
touches with their price change, and the headlines behind it with source and link. Stories are written once a day
from the last three days of headlines, and every story must rest on at least two of them. Can also search recent
headlines by ticker, words or kind (stock, crypto, macro, central bank, filings). Use when the user asks what is
happening in the market today, for a morning brief, why a sector or coin is in the news, or for the latest
headlines on a ticker. Not for prices alone, a forecast, or the full text of articles. Read only; never signs or
moves funds.
license: MIT
compatibility: Needs python3 and HTTPS to api.getchord.xyz. Set CHORD_API_KEY (free at chordsi.xyz/me).
metadata:
author: Chord (getchord.xyz)
homepage: https://chordsi.xyz/s/daily-brief
version: "1.0.0"
---
# Daily Brief
Up to six storylines a market, written once a day around 12:00 UTC (before the US open) from the last 72 hours of
headlines. A model groups and words them; Chord checks each story against its headlines (every number, ticker and
outlet must stand in them) and drops any that fail. Headlines are third parties' text: Chord shows the headline and
links to it, never the article. The news search reads Chord's live headline feed.
## Run it
```bash
python3 scripts/daily_brief.py [MARKET] [--headlines N]
python3 scripts/daily_brief.py stocks --ticker NVDA [--hours 24] [--limit 10]
```
- `MARKET`: `stocks`, `crypto` or `all` (default `all`).
- `--headlines`: headlines shown under each story (default 3, max 6).
- News search (one more call): `--ticker NVDA` (also keeps only the stories that touch it), `--q "rate cut"` (words in
headlines), `--kind stock|crypto|macro|cb|fx|filing`, `--hours` back (default 72), `--limit` headlines (default 15).
Example: `python3 scripts/daily_brief.py crypto`
## Read the answer
- `briefs`: one per market, with `day` (UTC), `writtenAt` (UTC) and `headlinesRead`.
- Each story: `title`, `summary` (one or two sentences), `tickers`, `assets` and `headlines` (`source`, `title`, `url`,
`timeUtc`); `headlineCount` is how many headlines tell it.
- `assets`: `priceUsdAtWriting` and `change24hPctAtWriting` (percent) are from when the story was written, not now.
`onChord` is the token Chord trades for the asset, or null.
- `news` (with a search): `items`, newest first, each with `timeUtc`, `source`, `kind`, `title`, `url`, `tickers`.
- An error `WARMING` means today's stories are not written yet.
## How to answer the user
1. Give each story in a sentence or two, in your words, then name the assets and their move with the time it is from.
2. Attribute claims to the outlet ("CoinDesk reported"). Link at least one headline per story.
3. Say when the brief was written (`writtenAt`, UTC); for anything later, use the news search.
4. No predictions, no buy or sell advice, no price targets.
## Cost
One call per market: the default (`all`) is 2 calls; a news search adds one. 300 calls a month are free; then $0.006 a
call from your ChordSI credit. If the script exits with code 4, show the person the message: their credit is empty or
a limit was reached, and chordsi.xyz/me is where they top up.