Resolve a market by venue ID, slug, or text and return cascade
curl --request POST \
--url https://api.agg.market/correlated-markets/resolve \
--header 'Content-Type: application/json' \
--header 'x-app-id: <api-key>' \
--data '
{
"venue": "<string>",
"externalId": "<string>",
"slug": "<string>",
"conditionId": "<string>",
"q": "<string>",
"limit": 123,
"cursor": "<string>",
"includeResolved": true
}
'import requests
url = "https://api.agg.market/correlated-markets/resolve"
payload = {
"venue": "<string>",
"externalId": "<string>",
"slug": "<string>",
"conditionId": "<string>",
"q": "<string>",
"limit": 123,
"cursor": "<string>",
"includeResolved": True
}
headers = {
"x-app-id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-app-id': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
venue: '<string>',
externalId: '<string>',
slug: '<string>',
conditionId: '<string>',
q: '<string>',
limit: 123,
cursor: '<string>',
includeResolved: true
})
};
fetch('https://api.agg.market/correlated-markets/resolve', 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://api.agg.market/correlated-markets/resolve",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'venue' => '<string>',
'externalId' => '<string>',
'slug' => '<string>',
'conditionId' => '<string>',
'q' => '<string>',
'limit' => 123,
'cursor' => '<string>',
'includeResolved' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-app-id: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.agg.market/correlated-markets/resolve"
payload := strings.NewReader("{\n \"venue\": \"<string>\",\n \"externalId\": \"<string>\",\n \"slug\": \"<string>\",\n \"conditionId\": \"<string>\",\n \"q\": \"<string>\",\n \"limit\": 123,\n \"cursor\": \"<string>\",\n \"includeResolved\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-app-id", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.agg.market/correlated-markets/resolve")
.header("x-app-id", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"venue\": \"<string>\",\n \"externalId\": \"<string>\",\n \"slug\": \"<string>\",\n \"conditionId\": \"<string>\",\n \"q\": \"<string>\",\n \"limit\": 123,\n \"cursor\": \"<string>\",\n \"includeResolved\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.agg.market/correlated-markets/resolve")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-app-id"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"venue\": \"<string>\",\n \"externalId\": \"<string>\",\n \"slug\": \"<string>\",\n \"conditionId\": \"<string>\",\n \"q\": \"<string>\",\n \"limit\": 123,\n \"cursor\": \"<string>\",\n \"includeResolved\": true\n}"
response = http.request(request)
puts response.read_body{
"market": {
"id": "<string>",
"question": "<string>"
},
"data": [
{
"venueEventId": "<string>",
"eventTitle": "<string>",
"eventStartDate": "<string>",
"eventEndDate": "<string>",
"score": 123,
"action": "<string>",
"reason": "<string>",
"reasonDomain": "<string>"
}
],
"nextCursor": "<string>",
"hasMore": true
}{
"market": {
"id": "<string>",
"question": "<string>"
},
"status": "processing",
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}Discovery
Resolve a market by venue ID, slug, or text and return cascade
Public app-tier Discovery endpoint. Accepts any identifier the user has: venue+externalId, slug, conditionId, or fuzzy text search. Resolves to a market and returns cached correlated market candidates. If generation is missing, a market-intel BullMQ job is queued and the endpoint returns 202.
POST
/
correlated-markets
/
resolve
Resolve a market by venue ID, slug, or text and return cascade
curl --request POST \
--url https://api.agg.market/correlated-markets/resolve \
--header 'Content-Type: application/json' \
--header 'x-app-id: <api-key>' \
--data '
{
"venue": "<string>",
"externalId": "<string>",
"slug": "<string>",
"conditionId": "<string>",
"q": "<string>",
"limit": 123,
"cursor": "<string>",
"includeResolved": true
}
'import requests
url = "https://api.agg.market/correlated-markets/resolve"
payload = {
"venue": "<string>",
"externalId": "<string>",
"slug": "<string>",
"conditionId": "<string>",
"q": "<string>",
"limit": 123,
"cursor": "<string>",
"includeResolved": True
}
headers = {
"x-app-id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-app-id': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
venue: '<string>',
externalId: '<string>',
slug: '<string>',
conditionId: '<string>',
q: '<string>',
limit: 123,
cursor: '<string>',
includeResolved: true
})
};
fetch('https://api.agg.market/correlated-markets/resolve', 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://api.agg.market/correlated-markets/resolve",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'venue' => '<string>',
'externalId' => '<string>',
'slug' => '<string>',
'conditionId' => '<string>',
'q' => '<string>',
'limit' => 123,
'cursor' => '<string>',
'includeResolved' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-app-id: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.agg.market/correlated-markets/resolve"
payload := strings.NewReader("{\n \"venue\": \"<string>\",\n \"externalId\": \"<string>\",\n \"slug\": \"<string>\",\n \"conditionId\": \"<string>\",\n \"q\": \"<string>\",\n \"limit\": 123,\n \"cursor\": \"<string>\",\n \"includeResolved\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-app-id", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.agg.market/correlated-markets/resolve")
.header("x-app-id", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"venue\": \"<string>\",\n \"externalId\": \"<string>\",\n \"slug\": \"<string>\",\n \"conditionId\": \"<string>\",\n \"q\": \"<string>\",\n \"limit\": 123,\n \"cursor\": \"<string>\",\n \"includeResolved\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.agg.market/correlated-markets/resolve")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-app-id"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"venue\": \"<string>\",\n \"externalId\": \"<string>\",\n \"slug\": \"<string>\",\n \"conditionId\": \"<string>\",\n \"q\": \"<string>\",\n \"limit\": 123,\n \"cursor\": \"<string>\",\n \"includeResolved\": true\n}"
response = http.request(request)
puts response.read_body{
"market": {
"id": "<string>",
"question": "<string>"
},
"data": [
{
"venueEventId": "<string>",
"eventTitle": "<string>",
"eventStartDate": "<string>",
"eventEndDate": "<string>",
"score": 123,
"action": "<string>",
"reason": "<string>",
"reasonDomain": "<string>"
}
],
"nextCursor": "<string>",
"hasMore": true
}{
"market": {
"id": "<string>",
"question": "<string>"
},
"status": "processing",
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}Authorizations
Your application ID. Required for all app-tier and user-tier routes.
Body
application/json
⌘I