List games
curl --request GET \
--url https://arena-predictions.com/api/v1/games \
--header 'Authorization: Bearer <token>'import requests
url = "https://arena-predictions.com/api/v1/games"
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/games', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"games": [
{
"id": "<string>",
"slug": "<string>",
"league": "<string>",
"startsAt": "2023-11-07T05:31:56Z",
"status": "scheduled",
"home": {
"code": "<string>",
"name": "<string>"
},
"away": {
"code": "<string>",
"name": "<string>"
},
"instrumentCount": 123,
"season": 123,
"seasonType": "<string>",
"week": 123
}
],
"count": 123,
"nextCursor": "<string>",
"asOf": "2023-11-07T05:31:56Z"
}{
"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
}
}Markets
List games
A page of games with at least one public instrument, earliest first. With no from or to, a page starts six hours ago.
GET
/
games
List games
curl --request GET \
--url https://arena-predictions.com/api/v1/games \
--header 'Authorization: Bearer <token>'import requests
url = "https://arena-predictions.com/api/v1/games"
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/games', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"games": [
{
"id": "<string>",
"slug": "<string>",
"league": "<string>",
"startsAt": "2023-11-07T05:31:56Z",
"status": "scheduled",
"home": {
"code": "<string>",
"name": "<string>"
},
"away": {
"code": "<string>",
"name": "<string>"
},
"instrumentCount": 123,
"season": 123,
"seasonType": "<string>",
"week": 123
}
],
"count": 123,
"nextCursor": "<string>",
"asOf": "2023-11-07T05:31:56Z"
}{
"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 created at /docs, shown once, stored hashed.
Query Parameters
Available options:
scheduled, inprogress, final, postponed, cancelled Required range:
1 <= x <= 100The nextCursor of the previous page. Opaque.