Q Download
Download verified history for selected event outcomes and sides
Pass full contract objects returned by Q Search. IDs and sides are reverified. Up to 25 contracts from one provider; maximum 90-day range. JSON attachments contain metadata and rows. Missing intervals remain explicit.
POST
/
sports
/
prediction-markets
/
export
Download verified history for selected event outcomes and sides
curl --request POST \
--url https://quantura.studio/api/sports/prediction-markets/export \
--header 'Content-Type: application/json' \
--data '
{
"contracts": [
{
"source": "<string>",
"eventId": "<string>",
"marketId": "<string>",
"contractId": "<string>",
"providerSymbol": "<string>"
}
],
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"format": "csv"
}
'import requests
url = "https://quantura.studio/api/sports/prediction-markets/export"
payload = {
"contracts": [
{
"source": "<string>",
"eventId": "<string>",
"marketId": "<string>",
"contractId": "<string>",
"providerSymbol": "<string>"
}
],
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"format": "csv"
}
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({
contracts: [
{
source: '<string>',
eventId: '<string>',
marketId: '<string>',
contractId: '<string>',
providerSymbol: '<string>'
}
],
start: '2023-11-07T05:31:56Z',
end: '2023-11-07T05:31:56Z',
format: 'csv'
})
};
fetch('https://quantura.studio/api/sports/prediction-markets/export', 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://quantura.studio/api/sports/prediction-markets/export",
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([
'contracts' => [
[
'source' => '<string>',
'eventId' => '<string>',
'marketId' => '<string>',
'contractId' => '<string>',
'providerSymbol' => '<string>'
]
],
'start' => '2023-11-07T05:31:56Z',
'end' => '2023-11-07T05:31:56Z',
'format' => 'csv'
]),
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://quantura.studio/api/sports/prediction-markets/export"
payload := strings.NewReader("{\n \"contracts\": [\n {\n \"source\": \"<string>\",\n \"eventId\": \"<string>\",\n \"marketId\": \"<string>\",\n \"contractId\": \"<string>\",\n \"providerSymbol\": \"<string>\"\n }\n ],\n \"start\": \"2023-11-07T05:31:56Z\",\n \"end\": \"2023-11-07T05:31:56Z\",\n \"format\": \"csv\"\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://quantura.studio/api/sports/prediction-markets/export")
.header("Content-Type", "application/json")
.body("{\n \"contracts\": [\n {\n \"source\": \"<string>\",\n \"eventId\": \"<string>\",\n \"marketId\": \"<string>\",\n \"contractId\": \"<string>\",\n \"providerSymbol\": \"<string>\"\n }\n ],\n \"start\": \"2023-11-07T05:31:56Z\",\n \"end\": \"2023-11-07T05:31:56Z\",\n \"format\": \"csv\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://quantura.studio/api/sports/prediction-markets/export")
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 \"contracts\": [\n {\n \"source\": \"<string>\",\n \"eventId\": \"<string>\",\n \"marketId\": \"<string>\",\n \"contractId\": \"<string>\",\n \"providerSymbol\": \"<string>\"\n }\n ],\n \"start\": \"2023-11-07T05:31:56Z\",\n \"end\": \"2023-11-07T05:31:56Z\",\n \"format\": \"csv\"\n}"
response = http.request(request)
puts response.read_body{
"metadata": {
"source": "kalshi",
"mode": "normalized",
"frequency": "1m",
"target": "price",
"history_phase": "both",
"history_phase_policy": "auto",
"history_phase_by_contract": {
"EXAMPLE-YES": "both"
}
},
"rows": [
{
"timestamp": "2026-09-18T18:01:00Z",
"contract_id": "EXAMPLE-YES",
"price": 0.52,
"source": "kalshi"
}
]
}{
"ok": false,
"error": "event_query_invalid",
"message": "Choose a provider event and a valid continuation cursor."
}{
"ok": false,
"error": "event_query_invalid",
"message": "Choose a provider event and a valid continuation cursor."
}{
"ok": false,
"error": "event_query_invalid",
"message": "Choose a provider event and a valid continuation cursor."
}{
"ok": false,
"error": "event_query_invalid",
"message": "Choose a provider event and a valid continuation cursor."
}{
"ok": false,
"error": "event_query_invalid",
"message": "Choose a provider event and a valid continuation cursor."
}{
"ok": false,
"error": "event_query_invalid",
"message": "Choose a provider event and a valid continuation cursor."
}Body
application/json
Available options:
kalshi, polymarket_us Required array length:
1 - 25 elementsShow child attributes
Show child attributes
Available options:
raw, 1m, 5m, 15m, 30m, 1h, 4h, 1d, 1w, 1month, final Available options:
auto, both, pregame, in_game Available options:
normalized, raw, canvas Available options:
price, bid, ask, midpoint Available options:
leave, drop, forward_fill Available options:
json, csv Response
Successful response (illustrative example)
The response is of type object.
⌘I
Download verified history for selected event outcomes and sides
curl --request POST \
--url https://quantura.studio/api/sports/prediction-markets/export \
--header 'Content-Type: application/json' \
--data '
{
"contracts": [
{
"source": "<string>",
"eventId": "<string>",
"marketId": "<string>",
"contractId": "<string>",
"providerSymbol": "<string>"
}
],
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"format": "csv"
}
'import requests
url = "https://quantura.studio/api/sports/prediction-markets/export"
payload = {
"contracts": [
{
"source": "<string>",
"eventId": "<string>",
"marketId": "<string>",
"contractId": "<string>",
"providerSymbol": "<string>"
}
],
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"format": "csv"
}
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({
contracts: [
{
source: '<string>',
eventId: '<string>',
marketId: '<string>',
contractId: '<string>',
providerSymbol: '<string>'
}
],
start: '2023-11-07T05:31:56Z',
end: '2023-11-07T05:31:56Z',
format: 'csv'
})
};
fetch('https://quantura.studio/api/sports/prediction-markets/export', 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://quantura.studio/api/sports/prediction-markets/export",
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([
'contracts' => [
[
'source' => '<string>',
'eventId' => '<string>',
'marketId' => '<string>',
'contractId' => '<string>',
'providerSymbol' => '<string>'
]
],
'start' => '2023-11-07T05:31:56Z',
'end' => '2023-11-07T05:31:56Z',
'format' => 'csv'
]),
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://quantura.studio/api/sports/prediction-markets/export"
payload := strings.NewReader("{\n \"contracts\": [\n {\n \"source\": \"<string>\",\n \"eventId\": \"<string>\",\n \"marketId\": \"<string>\",\n \"contractId\": \"<string>\",\n \"providerSymbol\": \"<string>\"\n }\n ],\n \"start\": \"2023-11-07T05:31:56Z\",\n \"end\": \"2023-11-07T05:31:56Z\",\n \"format\": \"csv\"\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://quantura.studio/api/sports/prediction-markets/export")
.header("Content-Type", "application/json")
.body("{\n \"contracts\": [\n {\n \"source\": \"<string>\",\n \"eventId\": \"<string>\",\n \"marketId\": \"<string>\",\n \"contractId\": \"<string>\",\n \"providerSymbol\": \"<string>\"\n }\n ],\n \"start\": \"2023-11-07T05:31:56Z\",\n \"end\": \"2023-11-07T05:31:56Z\",\n \"format\": \"csv\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://quantura.studio/api/sports/prediction-markets/export")
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 \"contracts\": [\n {\n \"source\": \"<string>\",\n \"eventId\": \"<string>\",\n \"marketId\": \"<string>\",\n \"contractId\": \"<string>\",\n \"providerSymbol\": \"<string>\"\n }\n ],\n \"start\": \"2023-11-07T05:31:56Z\",\n \"end\": \"2023-11-07T05:31:56Z\",\n \"format\": \"csv\"\n}"
response = http.request(request)
puts response.read_body{
"metadata": {
"source": "kalshi",
"mode": "normalized",
"frequency": "1m",
"target": "price",
"history_phase": "both",
"history_phase_policy": "auto",
"history_phase_by_contract": {
"EXAMPLE-YES": "both"
}
},
"rows": [
{
"timestamp": "2026-09-18T18:01:00Z",
"contract_id": "EXAMPLE-YES",
"price": 0.52,
"source": "kalshi"
}
]
}{
"ok": false,
"error": "event_query_invalid",
"message": "Choose a provider event and a valid continuation cursor."
}{
"ok": false,
"error": "event_query_invalid",
"message": "Choose a provider event and a valid continuation cursor."
}{
"ok": false,
"error": "event_query_invalid",
"message": "Choose a provider event and a valid continuation cursor."
}{
"ok": false,
"error": "event_query_invalid",
"message": "Choose a provider event and a valid continuation cursor."
}{
"ok": false,
"error": "event_query_invalid",
"message": "Choose a provider event and a valid continuation cursor."
}{
"ok": false,
"error": "event_query_invalid",
"message": "Choose a provider event and a valid continuation cursor."
}