Search instruments
curl --request GET \
--url https://arena-predictions.com/api/v1/instruments/search \
--header 'Authorization: Bearer <token>'import requests
url = "https://arena-predictions.com/api/v1/instruments/search"
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/instruments/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"query": "<string>",
"count": 123,
"results": [
{
"rank": 123,
"querySide": "yes",
"queryLabel": "<string>",
"queryMeans": "<string>",
"instrument": {
"id": "<string>",
"slug": "<string>",
"gameId": "<string>",
"league": "<string>",
"marketType": "moneyline",
"period": "<string>",
"line": 123,
"subject": {
"code": "<string>",
"name": "<string>"
},
"label": "<string>",
"oppositeLabel": "<string>",
"yesMeans": "<string>",
"startsAt": "2023-11-07T05:31:56Z",
"gameStatus": "<string>",
"home": {
"code": "<string>",
"name": "<string>"
},
"away": {
"code": "<string>",
"name": "<string>"
},
"pushPossible": true,
"venues": [
"kalshi"
],
"gameSlug": "<string>",
"stat": "<string>",
"tieRule": "<string>",
"settlesOn": "<string>",
"postponementWindowHours": 123,
"rulesVersion": 123,
"listings": [
{
"venue": "kalshi",
"polarity": 1,
"sideLabel": "<string>",
"fungibility": "exact",
"reviewed": true,
"note": "<string>",
"buyForYes": "<string>",
"buyForNo": "<string>",
"venueMarketId": "<string>",
"venueSideRef": "<string>",
"venueEvent": "<string>"
}
]
}
}
]
}{
"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
Search instruments
A bet in words (“chiefs ml”, “kc -3.5”, “kc mia under 44.5”) to ranked instruments, through the same resolver as /ticker. Each result says which side of the instrument the words asked for.
GET
/
instruments
/
search
Search instruments
curl --request GET \
--url https://arena-predictions.com/api/v1/instruments/search \
--header 'Authorization: Bearer <token>'import requests
url = "https://arena-predictions.com/api/v1/instruments/search"
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/instruments/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"query": "<string>",
"count": 123,
"results": [
{
"rank": 123,
"querySide": "yes",
"queryLabel": "<string>",
"queryMeans": "<string>",
"instrument": {
"id": "<string>",
"slug": "<string>",
"gameId": "<string>",
"league": "<string>",
"marketType": "moneyline",
"period": "<string>",
"line": 123,
"subject": {
"code": "<string>",
"name": "<string>"
},
"label": "<string>",
"oppositeLabel": "<string>",
"yesMeans": "<string>",
"startsAt": "2023-11-07T05:31:56Z",
"gameStatus": "<string>",
"home": {
"code": "<string>",
"name": "<string>"
},
"away": {
"code": "<string>",
"name": "<string>"
},
"pushPossible": true,
"venues": [
"kalshi"
],
"gameSlug": "<string>",
"stat": "<string>",
"tieRule": "<string>",
"settlesOn": "<string>",
"postponementWindowHours": 123,
"rulesVersion": 123,
"listings": [
{
"venue": "kalshi",
"polarity": 1,
"sideLabel": "<string>",
"fungibility": "exact",
"reviewed": true,
"note": "<string>",
"buyForYes": "<string>",
"buyForNo": "<string>",
"venueMarketId": "<string>",
"venueSideRef": "<string>",
"venueEvent": "<string>"
}
]
}
}
]
}{
"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
Required string length:
1 - 200Required range:
1 <= x <= 25