Market Calibration
curl --request GET \
--url https://api.polyquantlab.com/v1/stats/calibration \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.polyquantlab.com/v1/stats/calibration"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.polyquantlab.com/v1/stats/calibration', 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.polyquantlab.com/v1/stats/calibration",
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://api.polyquantlab.com/v1/stats/calibration"
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://api.polyquantlab.com/v1/stats/calibration")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.polyquantlab.com/v1/stats/calibration")
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{
"ticker": "BTC",
"event_type": "5m",
"minutes_before": 1,
"buckets": [
{
"prob_lo": 0,
"prob_hi": 0.1,
"n_markets": 1240,
"frac_resolved_up": 0.04
},
{
"prob_lo": 0.1,
"prob_hi": 0.2,
"n_markets": 612,
"frac_resolved_up": 0.13
},
{
"prob_lo": 0.2,
"prob_hi": 0.3,
"n_markets": 421,
"frac_resolved_up": 0.24
},
{
"prob_lo": 0.45,
"prob_hi": 0.55,
"n_markets": 802,
"frac_resolved_up": 0.49
},
{
"prob_lo": 0.8,
"prob_hi": 0.9,
"n_markets": 580,
"frac_resolved_up": 0.86
},
{
"prob_lo": 0.9,
"prob_hi": 1,
"n_markets": 1184,
"frac_resolved_up": 0.95
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Stats
Market Calibration
Calibration analysis across resolved markets.
Returns a histogram-style breakdown: each bucket reports how many
markets were trading in that implied-probability range at
minutes_before before resolution, and what fraction of those
markets actually resolved Up.
GET
/
v1
/
stats
/
calibration
Market Calibration
curl --request GET \
--url https://api.polyquantlab.com/v1/stats/calibration \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.polyquantlab.com/v1/stats/calibration"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.polyquantlab.com/v1/stats/calibration', 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.polyquantlab.com/v1/stats/calibration",
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://api.polyquantlab.com/v1/stats/calibration"
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://api.polyquantlab.com/v1/stats/calibration")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.polyquantlab.com/v1/stats/calibration")
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{
"ticker": "BTC",
"event_type": "5m",
"minutes_before": 1,
"buckets": [
{
"prob_lo": 0,
"prob_hi": 0.1,
"n_markets": 1240,
"frac_resolved_up": 0.04
},
{
"prob_lo": 0.1,
"prob_hi": 0.2,
"n_markets": 612,
"frac_resolved_up": 0.13
},
{
"prob_lo": 0.2,
"prob_hi": 0.3,
"n_markets": 421,
"frac_resolved_up": 0.24
},
{
"prob_lo": 0.45,
"prob_hi": 0.55,
"n_markets": 802,
"frac_resolved_up": 0.49
},
{
"prob_lo": 0.8,
"prob_hi": 0.9,
"n_markets": 580,
"frac_resolved_up": 0.86
},
{
"prob_lo": 0.9,
"prob_hi": 1,
"n_markets": 1184,
"frac_resolved_up": 0.95
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Example:
"BTC"
Example:
"5m"
How far before resolution to sample the implied probability.
Required range:
0 <= x <= 1440Required range:
2 <= x <= 50Required range:
10 <= x <= 10000