Stock Quote API - Real-Time Equity Prices - FlashAlpha Lab API
Lab API 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.

GET /stockquote/{ticker}

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

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 mid as the fair reference and check it against your limit before submitting orders
  • Gauge liquidity from the spread - compute ask minus bid across symbols to size positions where the spread is tight enough to fill cleanly
  • Mark positions to market - pull lastPrice for each holding to value the book and compute live P&L
  • Fire trigger alerts - poll mid or lastPrice and notify when a symbol crosses a target level
  • Detect stale quotes - compare lastUpdate against wall-clock time to suppress trading logic when the feed has gone quiet
  • Feed live dashboards - stream bid/ask/mid into a trading UI or watchlist that refreshes in place
  • Stamp option-chain context - capture the underlying mid alongside an options pull so every Greek and exposure snapshot is tied to a known spot

Related reading

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

Ready to build?

Get your free API key and start pulling live options data in 30 seconds.