跳转到主要内容
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": "<string>",
    "status": {
      "live": true,
      "statusId": 123,
      "statusName": "<string>"
    },
    "sport": {
      "sportId": 123,
      "sportName": "<string>"
    },
    "tournament": {
      "tournamentId": 123,
      "tournamentName": "<string>",
      "categoryName": "<string>"
    },
    "season": {
      "seasonId": 123,
      "seasonName": "<string>",
      "seasonRound": 123
    },
    "startTime": 123,
    "endTime": 123,
    "market": {
      "marketId": 123,
      "marketName": "<string>",
      "marketType": "<string>"
    },
    "participants": [
      {
        "participantId": 123,
        "participantName": "<string>"
      }
    ],
    "externalProviders": {},
    "bookmakers": {}
  }
]

授权

apiKey
string
query
必填

Your API key (query-based auth for v5).

查询参数

sportId
integer | null
tournamentId
integer | null
bookmakers
string | null

响应

Returns FutureMeta[] (live only)

futureId
string
必填
status
object
必填
sport
object
必填
tournament
object
必填
season
object
必填
startTime
integer
必填
endTime
integer
必填
market
object
必填
participants
object[]
必填

List of participants (teams/players) competing in this futures market.

externalProviders
object
必填
bookmakers
object
必填