Stock Data API v3.0.0

Welcome to the Stock Data API! 👋

This FastAPI-based 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 v3.0.0:
  • New: Added a high-performance, unified simulation endpoint for score and cost-profit analysis.
  • Significant refactoring for improved organization, speed, and reliability.
  • Enhanced data handling for financial endpoints.
  • Redis / in-memory dynamic caching.
  • Comprehensive tests.

Explore the API Endpoints

Authentication
Required. Use API Key: l8s-f7s100. Pass via X-API-KEY header or Key query param.
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/?Key=l8s-f7s100" -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
OpenAPI Schema
View OpenAPI JSON Schema
ReDoc
Alternative API Documentation
Tests
View Test Results