Get Market Prices
curl --request POST \
--url https://synthesis.trade/api/v1/markets/prices \
--header 'Content-Type: application/json' \
--data '
[
"21742633143463906290569050155826241533067272736897614950488156847949938836455",
"KXBTC-25-T100000"
]
'import requests
url = "https://synthesis.trade/api/v1/markets/prices"
payload = ["21742633143463906290569050155826241533067272736897614950488156847949938836455", "KXBTC-25-T100000"]
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify([
'21742633143463906290569050155826241533067272736897614950488156847949938836455',
'KXBTC-25-T100000'
])
};
fetch('https://synthesis.trade/api/v1/markets/prices', 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://synthesis.trade/api/v1/markets/prices",
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([
'21742633143463906290569050155826241533067272736897614950488156847949938836455',
'KXBTC-25-T100000'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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://synthesis.trade/api/v1/markets/prices"
payload := strings.NewReader("[\n \"21742633143463906290569050155826241533067272736897614950488156847949938836455\",\n \"KXBTC-25-T100000\"\n]")
req, _ := http.NewRequest("POST", url, payload)
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://synthesis.trade/api/v1/markets/prices")
.header("Content-Type", "application/json")
.body("[\n \"21742633143463906290569050155826241533067272736897614950488156847949938836455\",\n \"KXBTC-25-T100000\"\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://synthesis.trade/api/v1/markets/prices")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "[\n \"21742633143463906290569050155826241533067272736897614950488156847949938836455\",\n \"KXBTC-25-T100000\"\n]"
response = http.request(request)
puts response.read_body{
"success": true,
"response": {
"prices": {
"21742633143463906290569050155826241533067272736897614950488156847949938836455": 0.64,
"KXBTC-25-T100000": {
"Yes": 0.58,
"No": 0.42
}
}
}
}Markets
Get Market Prices
Fetch current prices for a batch of market identifiers. Accepts both Polymarket token IDs and Kalshi market IDs. Maximum 1000 markets per request.
Get Market Prices
curl --request POST \
--url https://synthesis.trade/api/v1/markets/prices \
--header 'Content-Type: application/json' \
--data '
[
"21742633143463906290569050155826241533067272736897614950488156847949938836455",
"KXBTC-25-T100000"
]
'import requests
url = "https://synthesis.trade/api/v1/markets/prices"
payload = ["21742633143463906290569050155826241533067272736897614950488156847949938836455", "KXBTC-25-T100000"]
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify([
'21742633143463906290569050155826241533067272736897614950488156847949938836455',
'KXBTC-25-T100000'
])
};
fetch('https://synthesis.trade/api/v1/markets/prices', 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://synthesis.trade/api/v1/markets/prices",
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([
'21742633143463906290569050155826241533067272736897614950488156847949938836455',
'KXBTC-25-T100000'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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://synthesis.trade/api/v1/markets/prices"
payload := strings.NewReader("[\n \"21742633143463906290569050155826241533067272736897614950488156847949938836455\",\n \"KXBTC-25-T100000\"\n]")
req, _ := http.NewRequest("POST", url, payload)
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://synthesis.trade/api/v1/markets/prices")
.header("Content-Type", "application/json")
.body("[\n \"21742633143463906290569050155826241533067272736897614950488156847949938836455\",\n \"KXBTC-25-T100000\"\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://synthesis.trade/api/v1/markets/prices")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "[\n \"21742633143463906290569050155826241533067272736897614950488156847949938836455\",\n \"KXBTC-25-T100000\"\n]"
response = http.request(request)
puts response.read_body{
"success": true,
"response": {
"prices": {
"21742633143463906290569050155826241533067272736897614950488156847949938836455": 0.64,
"KXBTC-25-T100000": {
"Yes": 0.58,
"No": 0.42
}
}
}
}Body
application/json
Example:
[
"21742633143463906290569050155826241533067272736897614950488156847949938836455",
"KXBTC-25-T100000"
]
Response
200 - application/json
Current prices by market identifier
⌘I