Skip to content

Making Requests

A few simple rules apply to every endpoint. Learn them once and every request looks the same.

The basics

  • Base URL: https://api.gammaedge.us
  • Every endpoint is a GET and returns JSON.
  • HTTPS only — and always include your key in the X-API-Key header.

Tickers

Put the stock symbol straight in the URL path, e.g. AAPL:

On Windows

These examples are written for Mac and Linux. In Windows Command Prompt, put the whole command on one line (drop the \ line break) and write the key as %GAMMAEDGE_API_KEY% instead of $GAMMAEDGE_API_KEY. See Make your first request.

curl -s https://api.gammaedge.us/v1/centab/AAPL \
  -H "X-API-Key: $GAMMAEDGE_API_KEY"

Don't worry about case — aapl works the same as AAPL. A symbol that isn't valid returns 400 (7000000); a valid symbol we have no data for returns 404 (7000001).

Time slices (vold)

Want the market at 2:00 PM? Ask for it as HH:MM Eastern Time. Times from 09:25–16:05 ET are accepted, including the five-minute edge around the regular session:

curl -s https://api.gammaedge.us/v1/vold/AAPL/slice/14:00 \
  -H "X-API-Key: $GAMMAEDGE_API_KEY"

Slices are taken every 5 minutes. A time between two slices gets the nearest one (12:37 → 12:35, 12:38 → 12:40), and a time up to 5 minutes outside the session is served the 09:30 slice or the last slice of the day. The last slice is 15:55 (12:55 on early-close days), so 15:58 through 16:05 get 15:55. Check snapshot_timestamp in the response to see which slice you received. You can also reuse that timestamp as an ISO 8601 value with an offset, such as 2026-06-05T14:00:00-04:00 (URL-encode the + in positive offsets).

If that slice isn't stored yet (for example, a time later today), you get 404 (7000001) with a message naming the latest available slice, e.g. No slice stored for 15:20 ET yet for AAPL. Latest available slice: 14:55 ET.

A time further outside the session, or in the wrong format, returns 400 (7000000).

Which session you get (session_date, session_status)

The routes in the table report the session in session_date (ET, YYYY-MM-DD) and its state in session_status. Each serves one session at a time.

The routes move to a new session at different times:

Routes Move to the new session Before that
summary, netstat, deltabalance, expiries, positioning With the session's first data update whose option quotes are from that session: for SPX and VIX from about 20:15 ET the evening before (their options trade overnight); for other tickers with their first premarket option quote, or the 09:30 ET open The previous session
replay/session At the 09:30 ET open for every symbol, including SPX and VIX The last completed session
vold, volu, centab, specpa At the 09:30 ET open The previous session

Any data update carrying data for the coming session belongs to that session, whenever it was made, so before 09:30 ET summary can already show today (premarket) while vold still shows yesterday. What counts is the option quotes in the update, not the stock or index price. SPX and VIX options trade overnight, so an update from about 20:15 ET onward already belongs to the next trading day, even though the index itself has no new price until 09:30. For other tickers an update belongs to the new session only once its option quotes are from that session: an update whose option quotes are still the previous close stays on the previous session, whenever it was made. Compare session_date before combining responses from different routes. Other updates made on a weekend or holiday belong to the last trading day.

Open interest is settled once a day. The industry releases the verified open interest from the close of trading day D−1 before trading day D opens; no intraday open interest updates exist for retail services. GE loads it at 06:30–06:35 ET.

  • From that load on trading day D, every update uses D−1's open interest (oi_date = D−1), even while its option quotes are live.
  • Before 06:30 ET on trading day D, option data still carries the open interest settled at the close of D−2 (oi_date = D−2). That is the same open interest shown all through market day D−1. This includes SPX/VIX updates after the 20:15 ET overnight open, which already belong to session D, and premarket updates for names that quote from 07:00 ET if the load is late.

oi_loaded_at on summary, netstat and positioning is when GE loaded the open interest. After 06:35 ET, an oi_date older than the session before session_date means the open interest is stale.

session_status Meaning
premarket The session has not opened yet: this is its premarket data.
live The session is open (09:30 ET to the close).
provisional The session has closed; its data is not final yet.

Days-to-expiration windows

Use the whole-day dte from /v1/expiries/{ticker} as the value for min_dte and max_dte. DTE counts the full days remaining until 16:00 ET on the expiry date. An expiry is listed only until its settlement time. Netstat also accepts min_days and max_days as aliases.

If a window starts at 0 or has no lower bound and contains no live expiry, its lower bound rolls to the next listed expiry and its width stays the same. For example, 0 0 selects the next monthly expiry after SPXA settles. Other empty windows return HTTP 404 with error_code 7000001 and target min_dte. Netstat uses the request time to select a bounded window and the snapshot time to value it by default. With an explicit eval_time, Netstat selects the window from the snapshot and values contracts still live at eval_time.

Netstat eval_time

GET /v1/netstat/{ticker} accepts an optional eval_time: an ISO 8601 timestamp with a UTC offset, or YYYY-MM-DDTHH:MM read as Eastern Time. Use an offset to disambiguate a repeated hour when daylight saving time ends. Send it with eval_price to evaluate the response at a chosen price and time. Step it forward while the requested window still has live expiries.

  • Default: when eval_time is omitted the response is evaluated at the data snapshot time, exactly as before eval_time existed, and eval_time_used returns that snapshot time so the result can be traced to the Greeks data it came from. Pass eval_time to evaluate at a later time.
  • Response fields: eval_time_used gives the time used (the supplied time, or the snapshot time by default). time_to_expiry_days gives the remaining days for each settlement when you supply eval_time. Settlements at different times can share the same calendar date.
  • Snapshot time: metadata.snapshot_as_of gives the data snapshot time for the evaluation window. The earliest accepted explicit time is the start of that minute.
  • 400: eval_time is invalid, earlier than the data snapshot minute, or at or after the last settlement in the requested window.

Weekends and market holidays keep the last session. On early-close days (13:00 ET) the session turns provisional at 13:00.

Price bars

GET /v1/bars/{ticker} returns stored OHLCV bars for the requested trading hours in session, the availability in data_status, and the timestamp of the latest data in as_of. The previous session remains available until 07:00 ET on the next trading day for stocks, ETFs, and indexes. For stocks and ETFs on most-recent-session plans, default premarket and extended-hours requests also include the current session's bars as they arrive from 04:00 ET. Keys with extended bars access can query older stored sessions.

For an index, session=pre and session=extended also return bars from 20:15 ET the evening before the session (from Friday 20:15 ET for Monday), one per capture at the original capture time for every requested interval. Captures arrive about hourly overnight and more often in the morning. Open, high, low and close are the same level, volume is null, and each bar is complete at its capture time. source_basis says where the level came from:

  • implied: the level implied by overnight option prices. SPXP and RUT use their own options, and VIX uses the forward implied by its nearest trading expiry. SPX and SPXA use SPXP's level.
  • implied_carried: the newest option-implied level carried forward because the root's options do not quote overnight (NDX). It is a flat level until the root's own bars begin.

A bar is left out when a capture has no option-implied level at all. If an overnight read fails, the API can still return the bars it read and keeps is_end_of_history false. If no bars can be returned, the API returns a storage error or a timeout. When polling with since, overlap the capture-time window and replace bars by timestamp so late arrivals in that window are picked up.

From 09:30 ET, index bars have source_basis index. Stock and ETF bars have source_basis trades. An index has no post bars.

Stock and ETF share volume is partial_live intraday. The post-close recompute replaces it with consolidated full-market volume. Index share volume is null.

At the open (data_status)

Intraday data arrives in 5-minute slices. A slice's timestamp marks the start of its bar, so the 09:30 slice covers 09:30–09:35. Each slice is published about 1 minute after its 5-minute bar closes (about 6 minutes after its timestamp), all day. The first slice of the day (09:30) is normally available between about 09:36 and 09:41 ET.

Until a route has everything it needs, it still returns 200 OK and tells you what it is waiting for in data_status. It never holds back data it already has.

Stage Typically (ET) centab specpa, vold, vold/latest, volu
Open, before the first slice 09:30 – ~09:41 awaiting_first_slice — today's session_date, no ended slice awaiting_first_slice — today's session_date, no ended slice; volu returns expiries: [] and total_oi: 0
First slice (09:30) ~09:36 – 09:41 awaiting_second_slice — centroids, spot, volume; slope and rate of change are null complete
Second slice (09:35) ~09:41 – 09:46 awaiting_third_slice — slope set; rate of change null complete
Third slice (09:40) onward ~09:46 – 09:51 complete complete

Each route moves through the stages on its own: it serves a slice as soon as that slice is published and never waits for another route. centab and specpa advance only once a slice's 5 minutes have ended: a slice still in progress is served but not counted, so before 09:35 they can show the 09:30 slice while still awaiting_first_slice.

If a route still has no slice for today by 09:50 ET, that is no longer treated as normal: it returns 404 (7000001) until data arrives. Error responses use the standard error body (Error Messages) and carry no data_status.

What comes back

  • Success: 200 OK with a JSON body specific to the endpoint.
  • Error: a JSON body with a numeric error_code and a plain-language error_message. Branch on the code, not the message — the code never changes. See Error Messages.

Endpoint summary

Endpoint Path parameters
Volume-delta (session) GET /v1/vold/{ticker}
Volume-delta (latest slice) GET /v1/vold/{ticker}/latest
Volume-delta (single slice) GET /v1/vold/{ticker}/slice/{timestamp}
Volume analytics GET /v1/volu/{ticker}
Centroid analytics GET /v1/centab/{ticker}
Spec put/call analytics GET /v1/specpa/{ticker}
Net positioning GET /v1/netstat/{ticker}
Market structure summary GET /v1/summary/{ticker}
Delta Balance GET /v1/deltabalance/{ticker}
Delta Balance forward GET /v1/deltabalance/{ticker}/forward
Positioning for one listed expiry GET /v1/positioning/{ticker}?expiry=
Expiries GET /v1/expiries/{ticker}
Expiry quartiles GET /v1/expiries/{ticker}/quartiles
Price bars GET /v1/bars/{ticker}
Published scanner results See the scanner routes in the API Reference
Usage GET /v1/usage