curl --request GET \
--url https://arena-predictions.com/api/v1/history/as_of \
--header 'Authorization: Bearer <token>'import requests
url = "https://arena-predictions.com/api/v1/history/as_of"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://arena-predictions.com/api/v1/history/as_of', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));"<unknown>"{
"error": {
"code": "invalid_request",
"message": "<string>",
"retryAfterSeconds": 2
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"retryAfterSeconds": 2
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"retryAfterSeconds": 2
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"retryAfterSeconds": 2
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"retryAfterSeconds": 2
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"retryAfterSeconds": 2
}
}Read history as of a time
Forwards the query string to the Fly history service and returns that service’s JSON. Smoke queries use series, ticker, as_of, period_interval and lookback_bars. 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.
curl --request GET \
--url https://arena-predictions.com/api/v1/history/as_of \
--header 'Authorization: Bearer <token>'import requests
url = "https://arena-predictions.com/api/v1/history/as_of"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://arena-predictions.com/api/v1/history/as_of', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));"<unknown>"{
"error": {
"code": "invalid_request",
"message": "<string>",
"retryAfterSeconds": 2
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"retryAfterSeconds": 2
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"retryAfterSeconds": 2
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"retryAfterSeconds": 2
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"retryAfterSeconds": 2
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"retryAfterSeconds": 2
}
}Authorizations
Authorization: Bearer arena_sk_... (the x-arena-key header is accepted too). Keys are made in Settings (https://arena-predictions.com/settings#api-keys) or with arena keys create, shown once, stored hashed.
Query Parameters
Series ticker. Forwarded to the history service.
Market ticker. Forwarded to the history service.
The time to read, UNIX seconds.
Bucket size in minutes. Common values are 1, 60 and 1440.
How many bars to look back.
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.
The history service's JSON, unchanged.