Stock Quote API
Fetch real-time bid, ask, mid, and last-traded prices for tracked equity symbols.
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
- Pre-trade reference pricing — confirm the current market price before submitting orders
- Spread analysis — compare bid-ask spread width across symbols to gauge liquidity
- Portfolio mark-to-market — pull live prices to value existing positions
- Trigger-based alerts — poll the endpoint to detect when a symbol crosses a target price
- Dashboard displays — feed live quotes into a trading dashboard or web UI
When to Use This Endpoint
Use /stockquote/{ticker} when you need the underlying equity price. For options pricing and Greeks, use the Option Quote endpoint instead. For options exposure analytics (GEX, DEX, etc.), see the Exposure Analytics endpoints. This endpoint is lightweight and fast — ideal for frequent polling or pre-trade checks.
Endpoint
Returns the current bid, ask, mid, and last price for a tracked symbol.
Authentication: Required — X-Api-Key header
Rate Limited: Yes
Parameters
| Name | In | Required | Description |
|---|---|---|---|
ticker |
path | required | Stock symbol (e.g. SPY, QQQ) |
Example Request
curl -H "X-Api-Key: YOUR_API_KEY" \
https://lab.flashalpha.com/stockquote/SPY
import requests
resp = requests.get(
"https://lab.flashalpha.com/stockquote/SPY",
headers={"X-Api-Key": "YOUR_API_KEY"}
)
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" }
});
const data = await resp.json();
console.log(`SPY mid: ${data.mid}`);
Response 200 OK
{
"ticker": "SPY",
"bid": 597.50,
"ask": 597.51,
"mid": 597.505,
"lastPrice": 597.505,
"lastUpdate": "2026-02-28T16:30:45Z"
}
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 |
Errors
| Status | Description |
|---|---|
404 |
No quote available for symbol |