Price History

Retrieve daily historical open, high, low, close, and volume rows for a symbol over a date range.

Use this endpoint for charting, exports, backtests, and other time-series workflows.

Endpoint

GET /stocks/{symbol}/price
Test request
/stocks/AAPL/price?start_date=2024-01-01&end_date=2024-12-31
Send a request to view the response.

Authentication

Required.

Authorization: Bearer <your_api_key>

Path Parameters

  • symbol: ticker or symbol to resolve

Query Parameters

  • start_date: inclusive start of the price range, in YYYY-MM-DD
  • end_date: inclusive end of the price range, in YYYY-MM-DD

Response

Returns an array of daily rows ordered by date.

Each row includes:

  • date
  • open
  • close
  • high
  • low
  • volume

start_date and end_date are both required, and end_date must not be later than today.

Example Request

curl -H "Authorization: Bearer $your_api_key" \
  "https://api.apifinance.ai/stocks/AAPL/price?start_date=2024-01-01&end_date=2024-12-31"