API Documentation
Authenticate with an X-API-Key header. All responses are JSON.
Authentication
Include your API key in every request:
curl -H "X-API-Key: YOUR_API_KEY" \ https://marketdataresource.com/api/v1/quotes?symbol=SPY
/v1/quotesStock Quotes
Latest quote for a symbol, delivered at your plan's delay. Live plans get real-time quotes; delayed plans get the newest real-time snapshot at least 5, 10 or 15 minutes old. "realtime" is true only for genuinely live data; "stale" marks a previous-session close.
Parameters
symbolTicker symbol (e.g. SPY). Omit for a list of recent quotes.Example Response
{
"symbol": "SPY",
"price": 766.21,
"bid": 766.21,
"ask": 766.26,
"mid": 766.235,
"timestamp": "2026-10-27T14:28:48Z",
"source": "ibkr_live",
"realtime": true,
"delayed": false,
"stale": false
}/v1/barsPrice Bars
OHLCV bars for a completed session (minute bars include extended hours, times in US/Eastern). Response headers X-Data-Source and X-Data-As-Of describe where the data came from.
Parameters
symbolinterval1min or 1day. Default: 1mindateYYYY-MM-DD. Default: latest completed sessionfrom / toYYYY-MM-DD date range (interval=1day only)Example Response
[{
"symbol": "SPY",
"open": 762.27,
"high": 763.06,
"low": 762.00,
"close": 762.63,
"volume": 8497,
"interval": "1min",
"timestamp": "2026-10-26T13:30:00-04:00"
}]/v1/eodEnd-of-Day Prices
Daily OHLCV prices for roughly the last 100 sessions, newest first.
Parameters
symbolExample Response
[{
"symbol": "SPY",
"date": "2026-10-26",
"open": 762.25,
"high": 767.73,
"low": 761.63,
"close": 765.37,
"adjClose": null,
"volume": 31651600
}]/v1/fundamentalsCompany Fundamentals
Get company profile, financials, and key metrics.
Parameters
symbolExample Response
{
"symbol": "AAPL",
"companyName": "Apple Inc.",
"sector": "Technology",
"marketCap": 3800000000000,
"peRatio": 32.5,
"eps": 6.57
}/v1/earningsEarnings
Earnings reports with EPS estimates and actuals.
Parameters
symbolExample Response
[{
"symbol": "AAPL",
"reportDate": "2026-07-24",
"fiscalQuarter": "Q3 2026",
"estimatedEps": 1.35,
"actualEps": 1.42
}]/v1/dividendsDividends
Dividend history with ex-dates and payment amounts.
Parameters
symbolExample Response
[{
"symbol": "AAPL",
"exDate": "2026-08-09",
"amount": 0.25,
"frequency": "quarterly"
}]/v1/newsMarket News
Financial news with sentiment and related tickers.
Parameters
symbolFilter by ticker symbolcategoryFilter: earnings, mergers, macro, etc.Example Response
[{
"headline": "Apple Reports Record Revenue",
"summary": "Apple exceeded expectations...",
"source": "Reuters",
"symbols": ["AAPL"],
"sentiment": "positive"
}]/v1/cryptoCrypto Quotes
Cryptocurrency price quotes.
Parameters
symbolCrypto symbol (e.g. BTC, ETH)Example Response
{
"symbol": "BTC",
"pair": "BTC/USD",
"price": 68432.50,
"change": 1250.00,
"changePct": 1.86
}/v1/forexForex Quotes
Foreign exchange rate quotes.
Parameters
pairCurrency pair (e.g. EUR/USD)Example Response
{
"pair": "EUR/USD",
"bid": 1.0842,
"ask": 1.0844,
"mid": 1.0843
}