Add parsed document text, company segments, and OpenFIGI lookups (TJC-2470) - #18
Merged
Conversation
The linter on PATH was built with Go 1.26.2 while GOROOT is 1.27.1, and golangci-lint panics type-checking the standard library in that state. Bump go.mod and the lint target to 1.27, and document that the linter has to be rebuilt with the same toolchain as the `go` on PATH. CI reads the version from go.mod so it follows along. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Quartr turned on the parsed slides and reports datasets for our key, and the live OpenAPI spec carries surface the CLI did not wrap: - `quartr reports text <id>` / `quartr slides text <id>` fetch the parsed Markdown. The endpoint answers with a CDN `textUrl`, so the command follows it and prints the Markdown on stdout by default (`--output PATH` to write a file, `--metadata` to see the envelope). `download` keeps writing a file by default; both share `saveURL`. - `quartr companies segments <id>` lists the segments child endpoint. Quartr marks the dataset legacy and it 403s on our tier, so the hint names it. - `--openfigis` on `companies list`, and `companies resolve` recognises an OpenFIGI by shape and queries `openfigis` instead of `tickers`. - The 403 hint now lists `companies segments` and `reports text` / `slides text`, the latter being a separately licensed package. Docs: README, CLAUDE.md, the quartr skill (SKILL.md, commands.md, and a new recipe for reading a filing as Markdown). Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The v2.12.0 release binary CI downloads was built with Go 1.26 and refuses a Go 1.27 target. v2.13.2 is built with go1.27.0 and loads the config unchanged. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
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.
Closes TJC-2470.
Quartr confirmed on 2026-09-10 that the parsed slides and reports datasets are enabled for our key. The live OpenAPI spec (
https://api.quartr.com/public/v3/openapi.json) also carries two other additions the CLI did not wrap. This PR covers all three.What's new
quartr reports text <id>/quartr slides text <id>fetch Quartr's parsed Markdown (headings and tables preserved). The API returns a CDNtextUrlrather than the text, so the command follows it and prints the Markdown on stdout by default.--output PATHwrites a file (Saved <path>on stderr, likedownload),--metadataprints the envelope (documentId,textUrl,updatedAt),--with-api-keyis the same opt-in as downloads.downloadstill writes a file by default; both share a newsaveURLhelper.quartr companies segments <id>lists the/companies/{id}/segmentschild endpoint. Quartr marks the dataset legacy and it returns 403 on our tier.--openfigisoncompanies list, andcompanies resolverecognises an OpenFIGI by shape (BBG000B9XRY4) and queriesopenfigisinstead oftickers.companies segmentsandreports text/slides text(a separately licensed package).Verified against the live API
Docs
README (new Parsed documents and Company segments sections), CLAUDE.md, and the
quartrskill: SKILL.md quick card and quirks,commands.mdmatrix, and a new recipe 3a for reading a filing as Markdown.Tests
Nine new tests in
internal/cli: stdout streaming,--outputfile write,--metadatawithout a CDN fetch,textrejected on transcripts, segments child list,openfigisforwarded to companies and dropped elsewhere, FIGI resolve, and the FIGI shape check.go test ./...andgolangci-lint runare clean.🤖 Generated with Claude Code