curl --request GET \
--url https://market-uat.dimetrades.com/api/forecast/markets/{marketId}/forecast_historyimport requests
url = "https://market-uat.dimetrades.com/api/forecast/markets/{marketId}/forecast_history"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://market-uat.dimetrades.com/api/forecast/markets/{marketId}/forecast_history', 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://market-uat.dimetrades.com/api/forecast/markets/{marketId}/forecast_history",
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://market-uat.dimetrades.com/api/forecast/markets/{marketId}/forecast_history"
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://market-uat.dimetrades.com/api/forecast/markets/{marketId}/forecast_history")
.asString();require 'uri'
require 'net/http'
url = URI("https://market-uat.dimetrades.com/api/forecast/markets/{marketId}/forecast_history")
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{
"forecast_history": [
{
"raw_numerical_forecast": 63.5,
"numerical_forecast": 63.5,
"formatted_forecast": "63.50%",
"end_period_ts": 1753776060,
"period_interval": 1
},
{
"raw_numerical_forecast": 64.25,
"numerical_forecast": 64.25,
"formatted_forecast": "64.25%",
"end_period_ts": 1753776120,
"period_interval": 1
}
]
}Forecast history for a market
The market-implied probability of the YES outcome over time — the curve behind a market’s forecast chart.
Built from executed trade prices, bucketed and averaged. A market that
has quotes but no trades yields an empty series, so an empty
forecast_history means “nothing traded in this window”, not “no such
market”. Unknown market ids also return 200 with an empty array; only a
non-numeric or non-positive id is rejected.
This is the market’s own price. For the underlying instrument a market
resolves against, use GET /price-history.
Bucket width follows range
You choose a window, not a resolution — period_interval on each point
reports the width you actually got, in minutes:
range | Window | Bucket width |
|---|---|---|
1d | last day | 1 minute |
1w | last week | 60 minutes |
1m | last month | 60 minutes |
all | full history | 1440 minutes (1 day) |
At most 2000 points are returned. start_ts / end_ts narrow the
window within the chosen range but do not change the bucket width.
Timestamp units
start_ts, end_ts and end_period_ts are all in seconds here — unlike
GET /price-history, whose response is in milliseconds. Buckets are
identified by their end, not their start.
No authentication
Forecast data is public. No bearer token is required.
curl --request GET \
--url https://market-uat.dimetrades.com/api/forecast/markets/{marketId}/forecast_historyimport requests
url = "https://market-uat.dimetrades.com/api/forecast/markets/{marketId}/forecast_history"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://market-uat.dimetrades.com/api/forecast/markets/{marketId}/forecast_history', 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://market-uat.dimetrades.com/api/forecast/markets/{marketId}/forecast_history",
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://market-uat.dimetrades.com/api/forecast/markets/{marketId}/forecast_history"
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://market-uat.dimetrades.com/api/forecast/markets/{marketId}/forecast_history")
.asString();require 'uri'
require 'net/http'
url = URI("https://market-uat.dimetrades.com/api/forecast/markets/{marketId}/forecast_history")
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{
"forecast_history": [
{
"raw_numerical_forecast": 63.5,
"numerical_forecast": 63.5,
"formatted_forecast": "63.50%",
"end_period_ts": 1753776060,
"period_interval": 1
},
{
"raw_numerical_forecast": 64.25,
"numerical_forecast": 64.25,
"formatted_forecast": "64.25%",
"end_period_ts": 1753776120,
"period_interval": 1
}
]
}Path Parameters
The tradable market id (outcomes[].id from GET /events/details), not an event id. Must be a positive integer.
x >= 1Query Parameters
Window to return, which also fixes the bucket width.
1d, 1w, 1m, all Optional lower bound as unix seconds. Narrows the window within range; does not change bucket width.
x >= 0Optional upper bound as unix seconds.
x >= 0Response
Forecast points, oldest first. Empty when nothing traded in the window.
2000Show child attributes
Show child attributes
