getFair
curl --request GET \
--url http://127.0.0.1:9113/v1/fair \
--header 'X-API-Key: <api-key>'import requests
url = "http://127.0.0.1:9113/v1/fair"
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/fair', 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/fair",
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/fair"
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/fair")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("http://127.0.0.1:9113/v1/fair")
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": [
{
"recomputed": true,
"result": {
"evaluated_at": "2023-11-07T05:31:56Z",
"independent_groups": 123,
"market": {
"family": "1x2",
"fixture_id": 4503599627370496,
"period": "full_time",
"settlement_rule": "<string>",
"line_quarters": 123
},
"max_confirmation_skew_seconds": 123,
"method": "multiplicative",
"min_independent_groups": 123,
"min_sharp_groups": 123,
"missing": [
"<string>"
],
"policy_id": "<string>",
"policy_sha256": "<string>",
"sharp_groups": 123,
"sources": [
{
"max_age_seconds": 123,
"max_probability_spread": "<string>",
"min_size": "<string>",
"offers": [
{
"native_offer": "<string>",
"reasons": [
"<string>"
]
}
],
"quotes": [
{
"latest_revision": 123,
"mapping_revision": 123,
"mapping_swapped": true,
"market_id": 4503599627370496,
"native_settlement_rule": "<string>",
"price": {
"confirmed_ts": "2023-11-07T05:31:56Z",
"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"
}
},
"source_swapped": true,
"target_code": "<string>"
}
],
"reasons": [
"<string>"
],
"region": "<string>",
"selected": true,
"sharp": true,
"source_id": 4503599627370496,
"configured_weight": "<string>",
"currency": "<string>",
"effective_weight": "<string>",
"feed_group_id": 4503599627370496,
"power_exponent": "<string>",
"probabilities": [
{
"code": "<string>",
"decimal_odds": "<string>",
"probability": "<string>"
}
],
"selected_offer": "<string>",
"size_unit": "<string>"
}
],
"status": "available",
"version": "<string>",
"probabilities": [
{
"code": "<string>",
"decimal_odds": "<string>",
"probability": "<string>"
}
],
"valid_until": "2023-11-07T05:31:56Z"
}
}
],
"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>"
}REST v1 reference
Get fair
Get fair: request contract, authentication, parameters and response behavior for the Oddswire private pilot.
getFair
curl --request GET \
--url http://127.0.0.1:9113/v1/fair \
--header 'X-API-Key: <api-key>'import requests
url = "http://127.0.0.1:9113/v1/fair"
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/fair', 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/fair",
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/fair"
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/fair")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("http://127.0.0.1:9113/v1/fair")
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": [
{
"recomputed": true,
"result": {
"evaluated_at": "2023-11-07T05:31:56Z",
"independent_groups": 123,
"market": {
"family": "1x2",
"fixture_id": 4503599627370496,
"period": "full_time",
"settlement_rule": "<string>",
"line_quarters": 123
},
"max_confirmation_skew_seconds": 123,
"method": "multiplicative",
"min_independent_groups": 123,
"min_sharp_groups": 123,
"missing": [
"<string>"
],
"policy_id": "<string>",
"policy_sha256": "<string>",
"sharp_groups": 123,
"sources": [
{
"max_age_seconds": 123,
"max_probability_spread": "<string>",
"min_size": "<string>",
"offers": [
{
"native_offer": "<string>",
"reasons": [
"<string>"
]
}
],
"quotes": [
{
"latest_revision": 123,
"mapping_revision": 123,
"mapping_swapped": true,
"market_id": 4503599627370496,
"native_settlement_rule": "<string>",
"price": {
"confirmed_ts": "2023-11-07T05:31:56Z",
"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"
}
},
"source_swapped": true,
"target_code": "<string>"
}
],
"reasons": [
"<string>"
],
"region": "<string>",
"selected": true,
"sharp": true,
"source_id": 4503599627370496,
"configured_weight": "<string>",
"currency": "<string>",
"effective_weight": "<string>",
"feed_group_id": 4503599627370496,
"power_exponent": "<string>",
"probabilities": [
{
"code": "<string>",
"decimal_odds": "<string>",
"probability": "<string>"
}
],
"selected_offer": "<string>",
"size_unit": "<string>"
}
],
"status": "available",
"version": "<string>",
"probabilities": [
{
"code": "<string>",
"decimal_odds": "<string>",
"probability": "<string>"
}
],
"valid_until": "2023-11-07T05:31:56Z"
}
}
],
"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>"
}Private local pilot with account-wide included credits. Namespace-scoped IDs; overage off. Successful data pages cost one credit; account/errors/304/aborted or timed-out deliveries are free. No payment or source distribution rights are implied.
Full request and response schemas: OpenAPI. Authentication · Prices and coverage · Errors and credits.
GET /v1/fair
Authentication
ApiKey
Parameters
| Name | Location | Required | Description |
|---|---|---|---|
namespace | query | Yes | Explicit pilot namespace; numeric IDs are scoped to it. |
fixture | query | Yes | One reviewed group fixture ID. |
markets | query | No | Exactly one payout family; default 1x2. |
period | query | No | Market period; unsupported payout periods yield insufficient_reference. |
method | query | No | Margin removal method. |
settlement_rule | query | Yes | Exact target settlement identity; never inferred across brands. |
line_quarters | query | No | Required for totals/AH; absent for 1x2. |
If-None-Match | header | No | Weak semantic ETag; freshness and access are revalidated before 304. |
Responses
| Status | Meaning |
|---|---|
| 200 | A typed page. Each successful data page costs one included credit, including explicit missing/insufficient states; account introspection is free. missing[] covers the full query. |
| 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 pilot namespace; numeric IDs are scoped to it.
One reviewed group fixture ID.
Required range:
1 <= x <= 9007199254740991Exactly one payout family; default 1x2.
Available options:
1x2, total, asian_handicap Market period; unsupported payout periods yield insufficient_reference.
Available options:
full_time, first_half Margin removal method.
Available options:
multiplicative, power Exact target settlement identity; never inferred across brands.
Required for totals/AH; absent for 1x2.
Response
A typed page. Each successful data page costs one included credit, including explicit missing/insufficient states; account introspection is free. missing[] covers the full query.