DEVELOPER GUIDE
Historical Market Data API
Retrieve stored daily stock and crypto candles. Supported API intervals are 1d, 1wk and 1mo. Coverage varies by instrument; inspect returned dates for gaps.
Create your API key ↗Make your first request
- Sign in and create an API key in your dashboard.
- Call the authenticated endpoint from your backend.
- Check the HTTP status, source dates and missing values before displaying data.
curl "https://stockap.com/v1/candles?market=stock&symbol=AAPL&interval=1d" \ -H "Authorization: Bearer YOUR_API_KEY"
Endpoint and parameters
GET /v1/candles
market:stocksymbol:AAPLinterval:1d
Authentication: Authorization: Bearer YOUR_API_KEY. Account permissions and request limits are enforced server-side. View current limits and usage in your dashboard; no unlimited access is implied.
Integration practices
- Cache responses according to your freshness requirements; do not poll once per user when a shared snapshot is sufficient.
- Handle authentication errors, rate limits and temporarily unavailable data.
- Preserve source timestamps and null values. Do not label old data as live or replace unknown values with zero.
- Never embed your secret API key in public frontend JavaScript.
Explore the data
Browse the pilot market directory · Existing documentation · Account and usage