curl --request GET \
--url https://core-api.adipredictstreet.com/api/markets/{symbol}/price-historyimport requests
url = "https://core-api.adipredictstreet.com/api/markets/{symbol}/price-history"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://core-api.adipredictstreet.com/api/markets/{symbol}/price-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://core-api.adipredictstreet.com/api/markets/{symbol}/price-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://core-api.adipredictstreet.com/api/markets/{symbol}/price-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://core-api.adipredictstreet.com/api/markets/{symbol}/price-history")
.asString();require 'uri'
require 'net/http'
url = URI("https://core-api.adipredictstreet.com/api/markets/{symbol}/price-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{
"symbol": "WC26-FIN-ARG-FRA",
"outcome": "YES",
"range": "live",
"from": "2023-11-07T05:31:56Z",
"to": "2023-11-07T05:31:56Z",
"grain": "<string>",
"points": [
{
"ts": "2026-05-09T15:00:00.000Z",
"price": "0.530000"
}
]
}{
"status": 400,
"error": {
"code": "bad_request",
"message": "<string>",
"trace_id": "<string>",
"retryAfterSec": 123,
"retryable": true,
"details": {}
}
}{
"status": 400,
"error": {
"code": "bad_request",
"message": "<string>",
"trace_id": "<string>",
"retryAfterSec": 123,
"retryable": true,
"details": {}
}
}Time-series price points for the chart UI
Returns a gap-free series of (ts, price) tuples for the requested range and outcome. price is the mark (the same value the market serves as chances): the book midpoint when the book is two-sided and the spread is at most $0.10, else the last trade. Intervals with no new observation carry the last value forward, so an active market never returns an empty points array.
Compared with /ohlc:
- A single
rangeparameter selects the (grain, window) pair. - The line uses the same mark as the market card, so the chart aligns with the headline percentage.
Bucket counts: live = 120 (1s), 1h = 240 (15s), 1d = 288 (5m), 1w = 336 (30m), 1m = 360 (2h). all picks its bucket at read time; the response echoes it as grain.
curl --request GET \
--url https://core-api.adipredictstreet.com/api/markets/{symbol}/price-historyimport requests
url = "https://core-api.adipredictstreet.com/api/markets/{symbol}/price-history"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://core-api.adipredictstreet.com/api/markets/{symbol}/price-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://core-api.adipredictstreet.com/api/markets/{symbol}/price-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://core-api.adipredictstreet.com/api/markets/{symbol}/price-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://core-api.adipredictstreet.com/api/markets/{symbol}/price-history")
.asString();require 'uri'
require 'net/http'
url = URI("https://core-api.adipredictstreet.com/api/markets/{symbol}/price-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{
"symbol": "WC26-FIN-ARG-FRA",
"outcome": "YES",
"range": "live",
"from": "2023-11-07T05:31:56Z",
"to": "2023-11-07T05:31:56Z",
"grain": "<string>",
"points": [
{
"ts": "2026-05-09T15:00:00.000Z",
"price": "0.530000"
}
]
}{
"status": 400,
"error": {
"code": "bad_request",
"message": "<string>",
"trace_id": "<string>",
"retryAfterSec": 123,
"retryable": true,
"details": {}
}
}{
"status": 400,
"error": {
"code": "bad_request",
"message": "<string>",
"trace_id": "<string>",
"retryAfterSec": 123,
"retryable": true,
"details": {}
}
}Path Parameters
Query Parameters
Preset window. Send either range or from (custom window), not both: both → 400 ambiguous_range, neither → 400 invalid_range. live = last 2 min @ 1s · 1h = last 1h @ 15s · 1d = last 24h @ 5m · 1w = last 7d @ 30m · 1m = last 30d @ 2h · all = full history, bucket chosen at read time (read grain from the response).
live, 1h, 1d, 1w, 1m, all Custom-range mode: ISO-8601 lower bound (inclusive). Mutually exclusive with range. For a now-ending live chart, supply from and OMIT to. Accepted: YYYY-MM-DD (00:00 UTC), YYYY or YYYY-MM, or one of those followed by T (or a space) and HH:mm[:ss[.fff]] with Z or an offset (±HH:MM, ±HHMM); 24:00 means the end of the day. A time without a zone, a rolled-over date (2026-02-30), a year outside 0001–9999 or more than 64 characters is refused (RND-4436). Else 400 invalid_timestamp.
Custom-range upper bound (inclusive); defaults to now, clamped to now if in the future. Only meaningful alongside from. Accepted: YYYY-MM-DD (00:00 UTC), YYYY or YYYY-MM, or one of those followed by T (or a space) and HH:mm[:ss[.fff]] with Z or an offset (±HH:MM, ±HHMM); 24:00 means the end of the day. A time without a zone, a rolled-over date (2026-02-30), a year outside 0001–9999 or more than 64 characters is refused (RND-4436). Else 400 invalid_timestamp.
Response
OK