Market Data

Get Historical Quotes

Get historical quotes.

delay_minutes ends the window at the newest bar at least that old, however late end_date asks for (see src/api/delayed_read.py).

get/api/market/historical

Request

  • Base URL: https://api.zerogex.io (the document declares no server; this is the origin it was published from)
  • URL: https://api.zerogex.io/api/market/historical
  • Auth: HTTP bearer

Query parameters

symbolstring
start_datestring nullable
end_datestring nullable
window_unitsinteger
timeframe'1min' | '5min' | '15min' | '1hr' | '1day' | '1hour'
allow_futuresboolean

Opt-in: when true and outside the cash session, return the cash index's futures bars instead of the (frozen) index series. Only the candlestick chart sets this; index-keyed overlays (gamma heatmap, max-pain, smart-money) leave it false so their price series stays the index.

delay_minutesinteger

Serve the newest data that is at least this many minutes old instead of the latest. 0, the default, is the live read.

Response

Successful Response

timestampstring date-time required
symbolstring required
openstring required
highstring required
lowstring required
closestring required
up_volumeinteger nullable
down_volumeinteger nullable
volumeinteger nullable
sessionstring nullable
display_sourcestring nullable
data_symbolstring nullable
data_contractstring nullable
data_contract_expirystring date nullable
futures_closestring nullable
futures_reference_closestring nullable
staleboolean nullable
data_age_secondsinteger nullable

Changes

No recorded changes to this operation across all 1 revision of this API.