curl --request GET \
--url https://arena-predictions.com/api/v1/history/export \
--header 'Authorization: Bearer <token>'import requests
url = "https://arena-predictions.com/api/v1/history/export"
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/export', 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
}
}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.
curl --request GET \
--url https://arena-predictions.com/api/v1/history/export \
--header 'Authorization: Bearer <token>'import requests
url = "https://arena-predictions.com/api/v1/history/export"
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/export', 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.
Window start, UNIX seconds.
Window end, UNIX seconds.
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.
The history service's JSON, unchanged.