Get Market News
curl --request GET \
--url https://synthesis.trade/api/v1/news/market/{market_id}import requests
url = "https://synthesis.trade/api/v1/news/market/{market_id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://synthesis.trade/api/v1/news/market/{market_id}', 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/news/market/{market_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://synthesis.trade/api/v1/news/market/{market_id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://synthesis.trade/api/v1/news/market/{market_id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://synthesis.trade/api/v1/news/market/{market_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"success": true,
"response": [
{
"news_id": "c4d5e6f7-a8b9-0123-cdef-1234567890ab",
"title": "Bitcoin surges after ETF inflows accelerate",
"source": "Bloomberg",
"description": "ETF demand pushed spot BTC higher and moved related prediction markets.",
"url": "https://example.com/news/bitcoin-etf-inflows",
"matches": [
{
"market_id": "KXBTC-25-T100000",
"venue": "kalshi",
"score": 0.88
}
],
"published_at": "2025-01-16T09:30:00",
"created_at": "2025-01-16T09:31:00"
}
]
}News
Get Market News
Get news for a specific market ID.
Get Market News
curl --request GET \
--url https://synthesis.trade/api/v1/news/market/{market_id}import requests
url = "https://synthesis.trade/api/v1/news/market/{market_id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://synthesis.trade/api/v1/news/market/{market_id}', 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/news/market/{market_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://synthesis.trade/api/v1/news/market/{market_id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://synthesis.trade/api/v1/news/market/{market_id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://synthesis.trade/api/v1/news/market/{market_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"success": true,
"response": [
{
"news_id": "c4d5e6f7-a8b9-0123-cdef-1234567890ab",
"title": "Bitcoin surges after ETF inflows accelerate",
"source": "Bloomberg",
"description": "ETF demand pushed spot BTC higher and moved related prediction markets.",
"url": "https://example.com/news/bitcoin-etf-inflows",
"matches": [
{
"market_id": "KXBTC-25-T100000",
"venue": "kalshi",
"score": 0.88
}
],
"published_at": "2025-01-16T09:30:00",
"created_at": "2025-01-16T09:31:00"
}
]
}⌘I