Markets

Export price history

Forwards the query string to the Fly history service. JSON comes back as JSON and CSV as CSV. Smoke queries use series, ticker, start_ts, end_ts and period_interval. Scope markets:read. Served only while the venue-data switch is on; until then 403 venue_data_off. Not cached. A 400 from the service is 400 invalid_request. A 403 that is not the server credential being refused is 403 invalid_request. A 404 is 404 market_not_found. A Fly 401 is 503 internal_error, because the caller's key was already accepted.

get/history/export

Request

  • Base URL: https://arena-predictions.com/api/v1
  • URL: https://arena-predictions.com/api/v1/history/export
  • Auth: HTTP bearer

Query parameters

seriesstring

Series ticker. Forwarded to the history service.

tickerstring

Market ticker. Forwarded to the history service.

start_tsstring

Window start, UNIX seconds.

end_tsstring

Window end, UNIX seconds.

period_intervalstring

Bucket size in minutes. Common values are 1, 60 and 1440.

Response

The history service's payload, passed through. JSON for the reads. Export may also be text/csv. Served only while the venue-data switch is on. Not cached.

unknown required

Changes

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