Stock Data API v4.0.0

Welcome to the Stock Data API! 👋

This Hono + Cloudflare Workers service provides comprehensive stock market data and advanced Monte Carlo simulations. Access financial statements, real-time stock quotes, and run complex probabilistic models.

What's New in v4.0.0 (Hono Migration):
  • High Performance: Running on Cloudflare Workers edge network.
  • New: Unified simulation endpoint for score and cost-profit analysis.
  • OpenAPI: Fully typed OpenAPI v3 documentation.

Explore the API Endpoints

Simulations
POST /simulations/ - Runs a probabilistic simulation. The JSON body must include a simulation_type of either "score" or "cost_profit".
Example for Score Simulation: curl -X POST "/simulations/" -H "Content-Type: application/json" -d '{"simulation_type":"score","marking_schema":[0,50,100],"questions":[{"id":"q1","weight":0.6,"probabilities":[0.1,0.3,0.6]},{"id":"q2","weight":0.4,"probabilities":[0.2,0.5,0.3]}],"estimated_score":70}'
Financials
/financials/{ticker} - Example: /financials/AAPL
Stock Quote
/quote/{ticker} - Example: /quote/AAPL
Company Info
/company-info/{ticker} - Example: /company-info/AAPL
Latest News
/news/{ticker} - Example: /news/AAPL
Quote History
/quote-history/{ticker} - Example: /quote-history/AAPL

API Documentation & Tests Links

Docs
Interactive API Documentation (Scalar)
OpenAPI Schema
View OpenAPI JSON Schema
Tests
View Test Results