Claude for Finance Analysis: a Practical Guide
Use Claude to analyze stocks and options with delayed market data: a free no-key API, three ways to connect it, and prompts that get grounded answers.
Filtering by topic #api · clear
Use Claude to analyze stocks and options with delayed market data: a free no-key API, three ways to connect it, and prompts that get grounded answers.
Switching models only fixes a model family limit. How Claude subscription session and weekly limits differ from API 429 rate limits, and what to do next.
Four ways to authenticate a Claude API client on a VPS: an Anthropic key, AWS IAM on Bedrock, Google ADC on Vertex, Entra on Foundry, plus safe storage.
Output tokens cost five times input, and every turn re-reads your whole context. See the arithmetic on one real session, and the four levers that cut it.
Claude output tokens cost five times input. Here is why decoding is slower than prefill, and what that asymmetry does to a real agent bill each month.
Curl your Ollama server on port 11434, read what a refused connection means, tour the API endpoints, and set OLLAMA_HOST without exposing the box.
Pull US daily market data into SQLite on your VPS with a free API key: read the schema, send one SQL query, handle quota errors, and run it on a systemd timer.
An unattended agent bills every loop with nobody watching. Hard caps, task budgets, prompt caching, batching, and the usage fields that show the spend.
The Ollama server ships with no authentication, so anything that reaches port 11434 can run your models and pull new ones. The three fixes, in order.
Run Codex, Claude Code and Hermes behind one self-hosted API. The exact Docker deploy, the loopback bind, the default login you must change, and TLS access.
Cache writes cost 1.25x and reads 0.1x or less, so a Claude prefix pays back on its second use. Derive your own break-even, then prove it from the API.
The Claude API has no free tier. New accounts get a small signup credit, and several parts cost nothing. October 2026 rates plus a worked cost for a first app.
Mock servers and API test runners do different jobs. Run both on your own box: WireMock stubs in git, Hurl suites in CI, and reports that survive a rebuild.