List Markets
curl --request GET \
--url https://www.aionmarket.com/bvapi/markets \
--header 'Authorization: Bearer <token>'import requests
url = "https://www.aionmarket.com/bvapi/markets"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://www.aionmarket.com/bvapi/markets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://www.aionmarket.com/bvapi/markets",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://www.aionmarket.com/bvapi/markets"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://www.aionmarket.com/bvapi/markets")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.aionmarket.com/bvapi/markets")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"items": [
{
"id": "<string>",
"title": "<string>",
"slug": "<string>",
"status": "<string>",
"yesPrice": 123,
"noPrice": 123,
"volume": 123,
"endDate": "2023-11-07T05:31:56Z"
}
],
"total": 123
}Market Operations
List Markets
Search markets via Polymarket public-search by keyword, status, sorting and pagination.
GET
/
markets
List Markets
curl --request GET \
--url https://www.aionmarket.com/bvapi/markets \
--header 'Authorization: Bearer <token>'import requests
url = "https://www.aionmarket.com/bvapi/markets"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://www.aionmarket.com/bvapi/markets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://www.aionmarket.com/bvapi/markets",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://www.aionmarket.com/bvapi/markets"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://www.aionmarket.com/bvapi/markets")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.aionmarket.com/bvapi/markets")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"items": [
{
"id": "<string>",
"title": "<string>",
"slug": "<string>",
"status": "<string>",
"yesPrice": 123,
"noPrice": 123,
"volume": 123,
"endDate": "2023-11-07T05:31:56Z"
}
],
"total": 123
}Search for markets on Polymarket using keywords and various filters.
Overview
Use this endpoint for discovery before context checks and execution.Query parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
q | string | Yes | - | Search keywords |
limit | integer | No | 20 | Results per page |
page | integer | No | 1 | 1-indexed page number |
order | string | No | - | Sorting field |
ascending | boolean | No | false | Sort direction |
eventsStatus | string | No | active | active, resolved, closed |
closed | boolean | No | false | Closed market filter |
venue | string | No | polymarket | Venue selector |
Examples
- curl
- Python SDK
curl -X GET "https://www.aionmarket.com/bvapi/markets?q=election&limit=20&order=volume24hr&ascending=false" \
-H "Authorization: Bearer YOUR_API_KEY"
from aion_sdk import AionMarketClient
client = AionMarketClient(api_key="YOUR_API_KEY", base_url="https://www.aionmarket.com/bvapi")
markets = client.get_markets(
q="election",
limit=20,
page=1,
venue="polymarket",
events_status="active",
)
print(markets)
Response
[
{
"id": "0x123abc...",
"title": "Will Biden win the 2024 election?",
"question": "Will Joe Biden win the 2024 US Presidential election?",
"conditionId": "0xabc123...",
"category": "Politics",
"endDate": "2024-11-05T00:00:00Z",
"createdAt": "2024-01-01T00:00:00Z",
"lastUpdatedAt": "2024-04-15T10:30:00Z",
"volume24hr": "1500000",
"liquidity": "500000",
"bestBid": "0.65",
"bestAsk": "0.68",
"active": true,
"resolved": false,
"outcomes": ["Yes", "No"]
}
]
Search Tips
- By Category: Search for category names like “Politics”, “Sports”, “Crypto”
- By Question: Search for specific questions about events
- By Keyword: Use broader terms to find related markets
- Sort by Volume: Discover most active markets with
order=volume24hr - Active Only: Use
eventsStatus=activeto find ongoing trading opportunities
Response Fields
| Field | Type | Description |
|---|---|---|
id | string | Market identifier |
title | string | Market title |
question | string | Full market question |
conditionId | string | Condition ID |
category | string | Market category |
endDate | string | Resolution time |
volume24hr | string | 24h volume |
liquidity | string | Liquidity |
bestBid | string | Best bid |
bestAsk | string | Best ask |
active | boolean | Active flag |
resolved | boolean | Resolved flag |
outcomes | array | Outcome names |
Common errors
| Code | Meaning |
|---|---|
400 | Invalid query parameters |
401 | Invalid or missing API key |
429 | Rate limited |
Use Cases
- Market Discovery: Find relevant markets for your trading strategy
- Opportunity Scanning: Identify high-volume or liquid markets
- Category Filtering: Browse markets within specific domains
- Heartbeat Data: Include in periodic market refreshes
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Global search keyword (required). Backed by Polymarket public-search.
Required string length:
1 - 100Per-type result count (limit_per_type), default 20
Required range:
x >= 01-indexed page number, default 1
Required range:
x >= 1Sort field, e.g. volume24hr / liquidity / volume
Maximum string length:
200Sort ascending (default false = descending)
Event status filter (default active)
Available options:
active, resolved, closed Only return closed markets (default false)
Trading venue (default polymarket)
Maximum string length:
50