实时期货
curl --request GET \
--url 'https://v5.oddspapi.io/zh/futures/live?apiKey='import requests
url = "https://v5.oddspapi.io/zh/futures/live?apiKey="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://v5.oddspapi.io/zh/futures/live?apiKey=', 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://v5.oddspapi.io/zh/futures/live?apiKey=",
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://v5.oddspapi.io/zh/futures/live?apiKey="
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://v5.oddspapi.io/zh/futures/live?apiKey=")
.asString();require 'uri'
require 'net/http'
url = URI("https://v5.oddspapi.io/zh/futures/live?apiKey=")
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[
{
"futureId": "id100000261286891",
"reissuedFutureId": null,
"previousFutureId": null,
"status": {
"live": true,
"statusId": 1,
"statusName": "Live"
},
"sport": {
"sportId": 10,
"sportName": "Soccer"
},
"tournament": {
"tournamentId": 26,
"tournamentName": "U21 UEFA European Championship, Qualification",
"categoryName": "International Youth"
},
"season": {
"seasonId": 128689,
"seasonName": "U21 UEFA European Championship 2027, Qualification"
},
"startTime": 1749081600,
"endTime": 1794959999,
"market": {
"marketId": 1,
"marketName": null,
"marketType": null
},
"participants": [],
"externalProviders": {
"betradarId": 128689,
"flashscoreId": null,
"opticoddsId": null,
"polymarketId": null,
"kalshiId": null,
"sofascoreId": null
},
"bookmakers": {}
}
]futures
实时期货
列出实时期货。
查询模式:可选 sportId / tournamentId 过滤器。
GET
/
futures
/
live
实时期货
curl --request GET \
--url 'https://v5.oddspapi.io/zh/futures/live?apiKey='import requests
url = "https://v5.oddspapi.io/zh/futures/live?apiKey="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://v5.oddspapi.io/zh/futures/live?apiKey=', 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://v5.oddspapi.io/zh/futures/live?apiKey=",
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://v5.oddspapi.io/zh/futures/live?apiKey="
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://v5.oddspapi.io/zh/futures/live?apiKey=")
.asString();require 'uri'
require 'net/http'
url = URI("https://v5.oddspapi.io/zh/futures/live?apiKey=")
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[
{
"futureId": "id100000261286891",
"reissuedFutureId": null,
"previousFutureId": null,
"status": {
"live": true,
"statusId": 1,
"statusName": "Live"
},
"sport": {
"sportId": 10,
"sportName": "Soccer"
},
"tournament": {
"tournamentId": 26,
"tournamentName": "U21 UEFA European Championship, Qualification",
"categoryName": "International Youth"
},
"season": {
"seasonId": 128689,
"seasonName": "U21 UEFA European Championship 2027, Qualification"
},
"startTime": 1749081600,
"endTime": 1794959999,
"market": {
"marketId": 1,
"marketName": null,
"marketType": null
},
"participants": [],
"externalProviders": {
"betradarId": 128689,
"flashscoreId": null,
"opticoddsId": null,
"polymarketId": null,
"kalshiId": null,
"sofascoreId": null
},
"bookmakers": {}
}
]查询参数
响应
Returns FutureMeta[] (live only)