curl --request GET \
--url http://127.0.0.1:9113/v1/history/coverage \
--header 'X-API-Key: <api-key>'import requests
url = "http://127.0.0.1:9113/v1/history/coverage"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('http://127.0.0.1:9113/v1/history/coverage', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "9113",
CURLOPT_URL => "http://127.0.0.1:9113/v1/history/coverage",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$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 := "http://127.0.0.1:9113/v1/history/coverage"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://127.0.0.1:9113/v1/history/coverage")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("http://127.0.0.1:9113/v1/history/coverage")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"kind": "tick",
"native_fixture_id": 4503599627370496,
"quote_key": "<string>",
"reason": "<string>",
"source_id": 4503599627370496,
"status": "recorded",
"confirmation": {
"capture_id": "<string>",
"capture_seq": "<string>",
"confirmed_ts": "2023-11-07T05:31:56Z",
"recorded_fixture_status": "<string>",
"recorded_scheduled_start": "2023-11-07T05:31:56Z"
},
"cutoff": "2023-11-07T05:31:56Z",
"ingest_seq": "<string>",
"observation": {
"event_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"key": {
"depth": 2,
"fixture_id": 4503599627370496,
"market_id": 4503599627370496,
"outcome_id": 4503599627370496,
"side": "quote",
"source_fixture_id": "<string>",
"source_id": 4503599627370496,
"source_market_id": "<string>",
"source_outcome_id": "<string>"
},
"raw_payload_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"seen_ts": "2023-11-07T05:31:56Z",
"value": {
"native_unit": "decimal_odds",
"state": "active",
"available_size": "<string>",
"commission_rate": "<string>",
"currency": "<string>",
"decimal_odds": "<string>",
"fee_rate": "<string>",
"main_line": true,
"native_value": "<string>",
"size_unit": "currency"
},
"source_sequence": "<string>",
"source_ts": "2023-11-07T05:31:56Z"
}
}
],
"history": {
"canonical_sink_verified": true,
"capture_high_seq": "<string>",
"closing_policy": "<string>",
"confirmation_policy": "<string>",
"coverage": [
{
"binding": {
"freshness_limit_seconds": 123,
"known": true,
"native_fixture_id": 4503599627370496,
"source_id": 4503599627370496,
"source_region": "<string>",
"sport_id": 4503599627370496
},
"gaps": [
"<string>"
],
"recorded_confirmations": 123,
"retained_ticks": 123,
"source_pending_captures": 123,
"source_quarantined_captures": 123,
"status": "<string>",
"first_confirmation": "2023-11-07T05:31:56Z",
"first_tick": "2023-11-07T05:31:56Z",
"last_confirmation": "2023-11-07T05:31:56Z",
"last_tick": "2023-11-07T05:31:56Z",
"max_confirmation_gap_seconds": 123
}
],
"historical_only": true,
"history_high_seq": "<string>",
"identity_scope": "<string>",
"namespace": "<string>",
"opening_policy": "<string>",
"query": {
"books": [
4503599627370496
],
"families": [
"1x2"
],
"kind": "<string>",
"native_fixture_ids": [
4503599627370496
],
"as_of": "2023-11-07T05:31:56Z",
"from": "2023-11-07T05:31:56Z",
"scheduled_start": "2023-11-07T05:31:56Z",
"until": "2023-11-07T05:31:56Z"
},
"timeline": "<string>",
"version": "<string>"
},
"meta": {
"consistency": "<string>",
"count": 123,
"next_cursor": "<string>",
"request_id": "<string>",
"sent_ts": "2023-11-07T05:31:56Z",
"snapshot_ts": "2023-11-07T05:31:56Z",
"version": "<string>",
"namespace": "<string>"
},
"missing": [
{
"detail": "<string>",
"reason": "<string>",
"family": "1x2",
"fixture_id": 4503599627370496,
"quote_key": "<string>",
"source_id": 4503599627370496
}
]
}{
"code": "<string>",
"detail": "<string>",
"invalid_params": [
{
"name": "<string>",
"reason": "<string>"
}
],
"missing": [
{
"detail": "<string>",
"reason": "<string>",
"family": "1x2",
"fixture_id": 4503599627370496,
"quote_key": "<string>",
"source_id": 4503599627370496
}
],
"request_id": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}{
"code": "<string>",
"detail": "<string>",
"invalid_params": [
{
"name": "<string>",
"reason": "<string>"
}
],
"missing": [
{
"detail": "<string>",
"reason": "<string>",
"family": "1x2",
"fixture_id": 4503599627370496,
"quote_key": "<string>",
"source_id": 4503599627370496
}
],
"request_id": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}{
"code": "<string>",
"detail": "<string>",
"invalid_params": [
{
"name": "<string>",
"reason": "<string>"
}
],
"missing": [
{
"detail": "<string>",
"reason": "<string>",
"family": "1x2",
"fixture_id": 4503599627370496,
"quote_key": "<string>",
"source_id": 4503599627370496
}
],
"request_id": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}{
"code": "<string>",
"detail": "<string>",
"invalid_params": [
{
"name": "<string>",
"reason": "<string>"
}
],
"missing": [
{
"detail": "<string>",
"reason": "<string>",
"family": "1x2",
"fixture_id": 4503599627370496,
"quote_key": "<string>",
"source_id": 4503599627370496
}
],
"request_id": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}{
"code": "<string>",
"detail": "<string>",
"invalid_params": [
{
"name": "<string>",
"reason": "<string>"
}
],
"missing": [
{
"detail": "<string>",
"reason": "<string>",
"family": "1x2",
"fixture_id": 4503599627370496,
"quote_key": "<string>",
"source_id": 4503599627370496
}
],
"request_id": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}{
"code": "<string>",
"detail": "<string>",
"invalid_params": [
{
"name": "<string>",
"reason": "<string>"
}
],
"missing": [
{
"detail": "<string>",
"reason": "<string>",
"family": "1x2",
"fixture_id": 4503599627370496,
"quote_key": "<string>",
"source_id": 4503599627370496
}
],
"request_id": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}{
"code": "<string>",
"detail": "<string>",
"invalid_params": [
{
"name": "<string>",
"reason": "<string>"
}
],
"missing": [
{
"detail": "<string>",
"reason": "<string>",
"family": "1x2",
"fixture_id": 4503599627370496,
"quote_key": "<string>",
"source_id": 4503599627370496
}
],
"request_id": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}{
"code": "<string>",
"detail": "<string>",
"invalid_params": [
{
"name": "<string>",
"reason": "<string>"
}
],
"missing": [
{
"detail": "<string>",
"reason": "<string>",
"family": "1x2",
"fixture_id": 4503599627370496,
"quote_key": "<string>",
"source_id": 4503599627370496
}
],
"request_id": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}{
"code": "<string>",
"detail": "<string>",
"invalid_params": [
{
"name": "<string>",
"reason": "<string>"
}
],
"missing": [
{
"detail": "<string>",
"reason": "<string>",
"family": "1x2",
"fixture_id": 4503599627370496,
"quote_key": "<string>",
"source_id": 4503599627370496
}
],
"request_id": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}{
"code": "<string>",
"detail": "<string>",
"invalid_params": [
{
"name": "<string>",
"reason": "<string>"
}
],
"missing": [
{
"detail": "<string>",
"reason": "<string>",
"family": "1x2",
"fixture_id": 4503599627370496,
"quote_key": "<string>",
"source_id": 4503599627370496
}
],
"request_id": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}{
"code": "<string>",
"detail": "<string>",
"invalid_params": [
{
"name": "<string>",
"reason": "<string>"
}
],
"missing": [
{
"detail": "<string>",
"reason": "<string>",
"family": "1x2",
"fixture_id": 4503599627370496,
"quote_key": "<string>",
"source_id": 4503599627370496
}
],
"request_id": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}{
"code": "<string>",
"detail": "<string>",
"invalid_params": [
{
"name": "<string>",
"reason": "<string>"
}
],
"missing": [
{
"detail": "<string>",
"reason": "<string>",
"family": "1x2",
"fixture_id": 4503599627370496,
"quote_key": "<string>",
"source_id": 4503599627370496
}
],
"request_id": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}{
"code": "<string>",
"detail": "<string>",
"invalid_params": [
{
"name": "<string>",
"reason": "<string>"
}
],
"missing": [
{
"detail": "<string>",
"reason": "<string>",
"family": "1x2",
"fixture_id": 4503599627370496,
"quote_key": "<string>",
"source_id": 4503599627370496
}
],
"request_id": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}Get history coverage
Get history coverage: request contract, authentication, parameters and response behavior for the Oddswire private pilot.
curl --request GET \
--url http://127.0.0.1:9113/v1/history/coverage \
--header 'X-API-Key: <api-key>'import requests
url = "http://127.0.0.1:9113/v1/history/coverage"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('http://127.0.0.1:9113/v1/history/coverage', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "9113",
CURLOPT_URL => "http://127.0.0.1:9113/v1/history/coverage",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$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 := "http://127.0.0.1:9113/v1/history/coverage"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://127.0.0.1:9113/v1/history/coverage")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("http://127.0.0.1:9113/v1/history/coverage")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"kind": "tick",
"native_fixture_id": 4503599627370496,
"quote_key": "<string>",
"reason": "<string>",
"source_id": 4503599627370496,
"status": "recorded",
"confirmation": {
"capture_id": "<string>",
"capture_seq": "<string>",
"confirmed_ts": "2023-11-07T05:31:56Z",
"recorded_fixture_status": "<string>",
"recorded_scheduled_start": "2023-11-07T05:31:56Z"
},
"cutoff": "2023-11-07T05:31:56Z",
"ingest_seq": "<string>",
"observation": {
"event_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"key": {
"depth": 2,
"fixture_id": 4503599627370496,
"market_id": 4503599627370496,
"outcome_id": 4503599627370496,
"side": "quote",
"source_fixture_id": "<string>",
"source_id": 4503599627370496,
"source_market_id": "<string>",
"source_outcome_id": "<string>"
},
"raw_payload_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"seen_ts": "2023-11-07T05:31:56Z",
"value": {
"native_unit": "decimal_odds",
"state": "active",
"available_size": "<string>",
"commission_rate": "<string>",
"currency": "<string>",
"decimal_odds": "<string>",
"fee_rate": "<string>",
"main_line": true,
"native_value": "<string>",
"size_unit": "currency"
},
"source_sequence": "<string>",
"source_ts": "2023-11-07T05:31:56Z"
}
}
],
"history": {
"canonical_sink_verified": true,
"capture_high_seq": "<string>",
"closing_policy": "<string>",
"confirmation_policy": "<string>",
"coverage": [
{
"binding": {
"freshness_limit_seconds": 123,
"known": true,
"native_fixture_id": 4503599627370496,
"source_id": 4503599627370496,
"source_region": "<string>",
"sport_id": 4503599627370496
},
"gaps": [
"<string>"
],
"recorded_confirmations": 123,
"retained_ticks": 123,
"source_pending_captures": 123,
"source_quarantined_captures": 123,
"status": "<string>",
"first_confirmation": "2023-11-07T05:31:56Z",
"first_tick": "2023-11-07T05:31:56Z",
"last_confirmation": "2023-11-07T05:31:56Z",
"last_tick": "2023-11-07T05:31:56Z",
"max_confirmation_gap_seconds": 123
}
],
"historical_only": true,
"history_high_seq": "<string>",
"identity_scope": "<string>",
"namespace": "<string>",
"opening_policy": "<string>",
"query": {
"books": [
4503599627370496
],
"families": [
"1x2"
],
"kind": "<string>",
"native_fixture_ids": [
4503599627370496
],
"as_of": "2023-11-07T05:31:56Z",
"from": "2023-11-07T05:31:56Z",
"scheduled_start": "2023-11-07T05:31:56Z",
"until": "2023-11-07T05:31:56Z"
},
"timeline": "<string>",
"version": "<string>"
},
"meta": {
"consistency": "<string>",
"count": 123,
"next_cursor": "<string>",
"request_id": "<string>",
"sent_ts": "2023-11-07T05:31:56Z",
"snapshot_ts": "2023-11-07T05:31:56Z",
"version": "<string>",
"namespace": "<string>"
},
"missing": [
{
"detail": "<string>",
"reason": "<string>",
"family": "1x2",
"fixture_id": 4503599627370496,
"quote_key": "<string>",
"source_id": 4503599627370496
}
]
}{
"code": "<string>",
"detail": "<string>",
"invalid_params": [
{
"name": "<string>",
"reason": "<string>"
}
],
"missing": [
{
"detail": "<string>",
"reason": "<string>",
"family": "1x2",
"fixture_id": 4503599627370496,
"quote_key": "<string>",
"source_id": 4503599627370496
}
],
"request_id": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}{
"code": "<string>",
"detail": "<string>",
"invalid_params": [
{
"name": "<string>",
"reason": "<string>"
}
],
"missing": [
{
"detail": "<string>",
"reason": "<string>",
"family": "1x2",
"fixture_id": 4503599627370496,
"quote_key": "<string>",
"source_id": 4503599627370496
}
],
"request_id": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}{
"code": "<string>",
"detail": "<string>",
"invalid_params": [
{
"name": "<string>",
"reason": "<string>"
}
],
"missing": [
{
"detail": "<string>",
"reason": "<string>",
"family": "1x2",
"fixture_id": 4503599627370496,
"quote_key": "<string>",
"source_id": 4503599627370496
}
],
"request_id": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}{
"code": "<string>",
"detail": "<string>",
"invalid_params": [
{
"name": "<string>",
"reason": "<string>"
}
],
"missing": [
{
"detail": "<string>",
"reason": "<string>",
"family": "1x2",
"fixture_id": 4503599627370496,
"quote_key": "<string>",
"source_id": 4503599627370496
}
],
"request_id": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}{
"code": "<string>",
"detail": "<string>",
"invalid_params": [
{
"name": "<string>",
"reason": "<string>"
}
],
"missing": [
{
"detail": "<string>",
"reason": "<string>",
"family": "1x2",
"fixture_id": 4503599627370496,
"quote_key": "<string>",
"source_id": 4503599627370496
}
],
"request_id": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}{
"code": "<string>",
"detail": "<string>",
"invalid_params": [
{
"name": "<string>",
"reason": "<string>"
}
],
"missing": [
{
"detail": "<string>",
"reason": "<string>",
"family": "1x2",
"fixture_id": 4503599627370496,
"quote_key": "<string>",
"source_id": 4503599627370496
}
],
"request_id": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}{
"code": "<string>",
"detail": "<string>",
"invalid_params": [
{
"name": "<string>",
"reason": "<string>"
}
],
"missing": [
{
"detail": "<string>",
"reason": "<string>",
"family": "1x2",
"fixture_id": 4503599627370496,
"quote_key": "<string>",
"source_id": 4503599627370496
}
],
"request_id": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}{
"code": "<string>",
"detail": "<string>",
"invalid_params": [
{
"name": "<string>",
"reason": "<string>"
}
],
"missing": [
{
"detail": "<string>",
"reason": "<string>",
"family": "1x2",
"fixture_id": 4503599627370496,
"quote_key": "<string>",
"source_id": 4503599627370496
}
],
"request_id": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}{
"code": "<string>",
"detail": "<string>",
"invalid_params": [
{
"name": "<string>",
"reason": "<string>"
}
],
"missing": [
{
"detail": "<string>",
"reason": "<string>",
"family": "1x2",
"fixture_id": 4503599627370496,
"quote_key": "<string>",
"source_id": 4503599627370496
}
],
"request_id": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}{
"code": "<string>",
"detail": "<string>",
"invalid_params": [
{
"name": "<string>",
"reason": "<string>"
}
],
"missing": [
{
"detail": "<string>",
"reason": "<string>",
"family": "1x2",
"fixture_id": 4503599627370496,
"quote_key": "<string>",
"source_id": 4503599627370496
}
],
"request_id": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}{
"code": "<string>",
"detail": "<string>",
"invalid_params": [
{
"name": "<string>",
"reason": "<string>"
}
],
"missing": [
{
"detail": "<string>",
"reason": "<string>",
"family": "1x2",
"fixture_id": 4503599627370496,
"quote_key": "<string>",
"source_id": 4503599627370496
}
],
"request_id": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}{
"code": "<string>",
"detail": "<string>",
"invalid_params": [
{
"name": "<string>",
"reason": "<string>"
}
],
"missing": [
{
"detail": "<string>",
"reason": "<string>",
"family": "1x2",
"fixture_id": 4503599627370496,
"quote_key": "<string>",
"source_id": 4503599627370496
}
],
"request_id": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}{
"code": "<string>",
"detail": "<string>",
"invalid_params": [
{
"name": "<string>",
"reason": "<string>"
}
],
"missing": [
{
"detail": "<string>",
"reason": "<string>",
"family": "1x2",
"fixture_id": 4503599627370496,
"quote_key": "<string>",
"source_id": 4503599627370496
}
],
"request_id": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}GET /v1/history/coverage
Authentication
ApiKey
Parameters
| Name | Location | Required | Description |
|---|---|---|---|
namespace | query | Yes | Explicit namespace; history IDs are permanent source-local IDs. |
books | query | Yes | One to eight entitled source/region IDs. |
native_fixture_id | query | Yes | One to ten permanent source-local canonical fixture IDs from mappings.native_fixture_id. Not the upstream source_fixture_id or reviewed group ID. |
markets | query | No | Comma-separated native payout families; default current entitled families. |
limit | query | No | Page size 1..100; coverage remains present on every page. |
cursor | query | No | Opaque whole-query fingerprint; restart explicitly after 409. |
from | query | Yes | Inclusive received seen_ts; required for ticks/coverage. |
until | query | Yes | Exclusive received seen_ts; required for ticks/coverage; maximum 31-day interval. |
If-None-Match | header | No | Weak semantic ETag; freshness and access are revalidated before 304. |
Responses
| Status | Meaning |
|---|---|
| 200 | Free bounded PG evidence coverage, not a continuous-coverage or whole-sink audit. Explicit history grants/reviews required. |
| 304 | Semantically unchanged after authentication and eligibility validation; always zero credits, including at exhausted quota. |
| 400 | Structured problem; see error handling. |
| 401 | Structured problem; see error handling. |
| 402 | Structured problem; see error handling. |
| 403 | Structured problem; see error handling. |
| 404 | Structured problem; see error handling. |
| 405 | Structured problem; see error handling. |
| 409 | Structured problem; see error handling. |
| 414 | Structured problem; see error handling. |
| 422 | Structured problem; see error handling. |
| 429 | Structured problem; see error handling. |
| 500 | Structured problem; see error handling. |
| 503 | Structured problem; see error handling. |
| 504 | Structured problem; see error handling. |
Authorizations
Headers
Weak semantic ETag; freshness and access are revalidated before 304.
Query Parameters
Explicit namespace; history IDs are permanent source-local IDs.
One to eight entitled source/region IDs.
One to ten permanent source-local canonical fixture IDs from mappings.native_fixture_id. Not the upstream source_fixture_id or reviewed group ID.
Comma-separated native payout families; default current entitled families.
Page size 1..100; coverage remains present on every page.
1 <= x <= 100Opaque whole-query fingerprint; restart explicitly after 409.
Inclusive received seen_ts; required for ticks/coverage.
Exclusive received seen_ts; required for ticks/coverage; maximum 31-day interval.
Response
Free bounded PG evidence coverage, not a continuous-coverage or whole-sink audit. Explicit history grants/reviews required.