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",
"points": [
{
"ts": "2026-05-09T15:00:00.000Z",
"price": "0.530000"
}
]
}{
"error": {
"code": "bad_request",
"message": "<string>",
"details": {},
"trace_id": "<string>"
},
"status": 400
}{
"error": {
"code": "bad_request",
"message": "<string>",
"details": {},
"trace_id": "<string>"
},
"status": 400
}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 (bestBid + bestAsk) / 2 when both book sides are populated, last-trade fallback otherwise, with carry-forward through inactive intervals — the FE never receives an empty points array on an active market.
Replaces the legacy /ohlc endpoint for the new chart UX:
- Single
rangeparameter — backend owns the (grain, window) mapping, so a UX change (“LIVE shows 10 min instead of 5”) does not require a frontend deploy. midsemantics match the displayed pill price the FE renders from the orderbook, so the chart line aligns with the headline percentage.
Bucket counts: live ≈ 300 (1s), 1h = 60 (1m), 1d = 48 (30m), 1w = 28 (6h), 1m = 60 (12h).
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",
"points": [
{
"ts": "2026-05-09T15:00:00.000Z",
"price": "0.530000"
}
]
}{
"error": {
"code": "bad_request",
"message": "<string>",
"details": {},
"trace_id": "<string>"
},
"status": 400
}{
"error": {
"code": "bad_request",
"message": "<string>",
"details": {},
"trace_id": "<string>"
},
"status": 400
}Path Parameters
Market symbol, e.g. UAE-CUP-FINAL-20260425. Used by sub-resource endpoints (/orderbook, /trades, /ohlc, /traders). The root market-detail endpoint /api/markets/{slug} accepts the slug instead — see MarketSlug.
Query Parameters
live = last 5 min @ 1s buckets · 1h = last 1h @ 1m · 1d = last 24h @ 30m · 1w = last 7d @ 6h · 1m = last 30d @ 12h.
live, 1h, 1d, 1w, 1m Outcome to project. Binary markets accept YES / NO; N-ary markets accept the integer index (0-based). Defaults to YES.
Response
OK
"WC26-FIN-ARG-FRA"
Echoed outcome query parameter (label or raw integer).
"YES"
live, 1h, 1d, 1w, 1m Window lower bound (inclusive).
Window upper bound (inclusive).
Show child attributes
Show child attributes