- Live API Reference
- Market Data
- Stock Quote
Stock Quote API
Fetch real-time bid, ask, mid, and last-traded prices for tracked equity symbols.
Endpoint
Returns the current bid, ask, mid, and last price for a tracked symbol.
X-Api-Key)
Rate Limited: Yes
Plan: Free+
Parameters
| Name | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
ticker |
path | string | required | - | Stock symbol (e.g. SPY, QQQ) |
Request
curl -H "X-Api-Key: YOUR_API_KEY" \
https://lab.flashalpha.com/stockquote/SPYimport requests
resp = requests.get(
"https://lab.flashalpha.com/stockquote/SPY",
headers={"X-Api-Key": "YOUR_API_KEY"}
)
resp.raise_for_status()
data = resp.json()
print(f"SPY mid: {data['mid']}")const resp = await fetch("https://lab.flashalpha.com/stockquote/SPY", {
headers: { "X-Api-Key": "YOUR_API_KEY" }
});
if (!resp.ok) throw new Error(`HTTP ${resp.status}`);
const data = await resp.json();
console.log(`SPY mid: ${data.mid}`);Try it live
Runs on live market data and uses 1 request from your daily quota.
Response
{
"ticker": "SPY",
"bid": 760.42,
"ask": 760.43,
"mid": 760.425,
"lastPrice": 760.425,
"lastUpdate": "2026-10-30T13:46:19.908Z",
"endpoint_version": "2026.09.30",
"data_as_of": {
"node": "fa5",
"equity_feed": "2026-10-30T13:46:19.908Z",
"equity_options_feed": "2026-10-30T13:46:18Z",
"index_feed": "2026-10-30T13:46:18.143Z",
"index_options_feed": "2026-10-30T13:46:18Z",
"futures_feed": "2026-10-30T13:46:15.271Z",
"futures_options_feed": "2026-10-30T13:46:14.335Z",
"flow_feed": "2026-10-30T13:46:00Z",
"oi_feed": "2026-10-29T20:00:00Z",
"macro_feed": "2026-10-29T21:00:20Z"
}
}Sending request…
See this endpoint on live data
Send this exact request and the real response shows up here, right next to the example.
Response Fields
| Field | Type | Description |
|---|---|---|
ticker |
string | Symbol name |
bid |
number | Current best bid price |
ask |
number | Current best ask price |
mid |
number | Midpoint of bid and ask |
lastPrice |
number | Last traded price |
lastUpdate |
string | ISO 8601 timestamp of last update |
endpoint_version, data_as_of | string, object | Response envelope, see Response envelope. |
Errors
| Status | Error | When |
|---|---|---|
401 | - | Missing or invalid X-Api-Key. The body is empty; check the status code before parsing JSON. |
403 | symbol_not_in_free_universe | Free plan only: the stock is not in the ~250-symbol tracked universe (/v1/universe). Basic and higher can query any US-listed symbol. The body includes current_plan and required_plan (Basic). |
404 | symbol_not_found | No data for the symbol (unknown symbol, or no live data). Outside US market hours the message also says the market is closed. |
429 | Quota exceeded | Daily quota used up. Retry-After gives the seconds until the reset at 00:00 UTC. Rejected requests (including 403) count toward the quota. |
What Is the Stock Quote Endpoint?
The Stock Quote endpoint returns the current market prices for any equity symbol tracked by FlashAlpha. It provides the national best bid and offer (NBBO), the midpoint price, the last traded price, and a timestamp of the most recent update. Prices refresh in real time during market hours and reflect the last available quote outside of trading hours.
Common Use Cases
- Anchor pre-trade pricing - read
midas the fair reference and check it against your limit before submitting orders - Gauge liquidity from the spread - compute
askminusbidacross symbols to size positions where the spread is tight enough to fill cleanly - Mark positions to market - pull
lastPricefor each holding to value the book and compute live P&L - Fire trigger alerts - poll
midorlastPriceand notify when a symbol crosses a target level - Detect stale quotes - compare
lastUpdateagainst wall-clock time to suppress trading logic when the feed has gone quiet - Feed live dashboards - stream
bid/ask/midinto a trading UI or watchlist that refreshes in place - Stamp option-chain context - capture the underlying
midalongside an options pull so every Greek and exposure snapshot is tied to a known spot
Related
Related reading
- Real-time options data: polling vs streaming - how often to poll quotes and when streaming pays off
Complementary endpoints
- Option Quote - bid/ask/mid for a specific contract once you have the underlying spot
- Exposure Summary - one-call dealer positioning snapshot for the same symbol
- Gamma Exposure (GEX) - per-strike dealer gamma to map levels around the current price
Unlock DEX, VEX and CHEX with Basic
Everything in Free, plus:
- DEX, VEX and CHEX exposure
- Full max pain
- ETF & index symbols SPY, QQQ, SPX, VIX
Go full-chain with Growth
Everything in Basic, plus:
- Full-chain GEX Every expiration
- 0DTE analytics
- Exposure summary & AI narrative
- CME futures & live screener
Add history and vol surfaces with Alpha
Everything in Growth, plus:
- Historical API replay Since 2017
- SVI vol surfaces
- VRP analytics
- Greeks surfaces Vanna, charm, volga and speed grids