The market data a report is built on can come from nichedb - #26
Merged
Conversation
A report build asked Alpaca for four hundred days of bars and the SEC for a company's facts, and the symbol directory was Alpaca's asset list pulled whole. nichedb.dev keeps all three now, so with NICHEDB_MARKETS=1 a build reads the symbol's history item and the company's fundamentals item, two requests, and falls back to the live path when either is missing or older than five days; the symbol sync walks the directory by cursor instead of pulling the list; and a ticker's news refresh reads nichedb's market news wire for the symbol before the RSS feeds run. Snapshots stay live, since nichedb keeps no quotes, and so does everything built on top: the signals, the corroboration, the scoring and the analysis. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014X1XCwt5iD3nqZfbddZqEP
ThreatCrush Security Scan31 finding(s) MEDIUM: 27 | LOW: 4
Snippets are redacted; ThreatCrush never prints matched credential material. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A report build asked Alpaca for four hundred days of bars and the SEC for a company's facts, and the symbol directory was Alpaca's asset list pulled whole. nichedb.dev keeps all three now (0.8.0:
marketskindssymbol,history,fundamentals), so this adds the other path behind one switch and leaves the live one in place.With
NICHEDB_MARKETS=1(NICHEDB_URLoptional):historyitem (two requests a build with fundamentals), mapped to the sameMarketBar[]; no item, empty window orlastolder than five days → the Alpaca→Yahoo path unchanged. Report recordsbarsSourcefor provenance.fundamentalsitem with the same derivationssec.tsmakes (revenue precedence, YoY from two fiscal years, shares from the cover page, debt current + noncurrent, runway); missing → live SEC. The filings list stays live.transcripts symbols syncwalkskind=symbolby keyset with asince=cursor (nichedb_cursortable, advanced only after a completed walk) instead of pulling/v2/assets; crypto pairs skipped as before; nichedb failure → Alpaca path.published_at) as step 0 of the same provider chain, then the RSS wires run as before; URL dedupe already exists.Snapshots stay live (nichedb keeps no quotes), and so does everything built on top: signals, corroboration, scoring, ASR, the LLM analysis, credits and digests.
bun test: 618 pass (28 new);tsc --noEmitclean.🤖 Generated with Claude Code
https://claude.ai/code/session_014X1XCwt5iD3nqZfbddZqEP