This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Documentation-only repository: it is the public API contract for the TickerTick stock-news API served at https://api.tickertick.com. There is no application code, build, lint, or test here — the deliverable is README.md (rendered on GitHub as the API docs) plus the curated source lists in docs/. The backend that actually implements and serves this API lives in a separate repository, TickerTick-backend-private; editing files here changes documentation, not API behavior.
GET /feed?q=<query>&n=<1-200>&last=<story_id>— latest matching stories, reverse-chronological.lastpaginates by an existing story'sid(a 64-bit int passed as a string). Storytimeis epoch milliseconds (JSDate.now()semantics). Rate limit: 10 req/min per IP (enforced; >5 requests in any 30s window → 30s block).GET /tickers?p=<prefix>&n=<count>— ticker / company-name autocomplete.
A context-free grammar; the full grammar and operator/term tables are in README.md:
- Operators:
(and ...),(or ...),(diff query1 query2)(matchesquery1but notquery2). - Terms:
z:TICKER(narrow),tt:TICKER/TT:TICKER(broad),s:DOMAIN(no dots/slashes, e.g.s:wsj),E:entity(lowercase, spaces →_),T:story_type. T:story types: curated, earning, market, sec, sec_fin, trade, ugc, analysis, industry.
docs/Retrieve-most-important-news.md documents advanced terms that are NOT in the README's tables — notably tag:_best_ and story types like T:fin_news. The README term/type tables are not exhaustive; treat docs/ as authoritative for those.
The docs/*.txt files are curated lists of source-website domains that back the T: story-type terms:
top-news-sources.txt→ backsT:curatedandT:analysisindustry-publications.txt→ backsT:industryugc-sources.txt→ backsT:ugc(user-generated content: Reddit, forums)analysis-sources.txt→ analyst / Substack / blog sources
These are the documented source-of-truth lists. The live service uses its own copies in the backend repo, so changing a list here does not by itself change what the API returns.
README.md and the live product deep-link to specific paths and anchors on the master branch (e.g. docs/top-news-sources.txt, the #story-types heading). Renaming docs/ files, changing section headings, or restructuring the README breaks those external links. Preserve file names and heading anchors when editing.
- Backend implementation (scrapers, indexer, NLP via spaCy
en_core_web_trf, Wikidata entity expansion):TickerTick-backend-private. - Historical bulk news-data dumps are published on this repo's GitHub Releases page.
- Official Python wrapper:
pytickertick(pip install pytickertick).