期货映射
curl --request GET \
--url 'https://v5.oddspapi.io/zh/futures/mapping?apiKey='import requests
url = "https://v5.oddspapi.io/zh/futures/mapping?apiKey="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://v5.oddspapi.io/zh/futures/mapping?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/mapping?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/mapping?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/mapping?apiKey=")
.asString();require 'uri'
require 'net/http'
url = URI("https://v5.oddspapi.io/zh/futures/mapping?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[
{
"bookmaker": "pinnacle",
"futureId": "id11000132131631",
"bookmakerFutureId": "1621504021",
"participantsRotated": false
},
{
"bookmaker": "pinnacle",
"futureId": "id11041564132792",
"bookmakerFutureId": "1621493680",
"participantsRotated": false
}
]mapping
期货映射
将内部期货ID映射到博彩公司/供应商期货ID。
查询模式:必需 bookmaker + (futureIds 或 bookmakerFutureIds)。
GET
/
futures
/
mapping
期货映射
curl --request GET \
--url 'https://v5.oddspapi.io/zh/futures/mapping?apiKey='import requests
url = "https://v5.oddspapi.io/zh/futures/mapping?apiKey="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://v5.oddspapi.io/zh/futures/mapping?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/mapping?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/mapping?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/mapping?apiKey=")
.asString();require 'uri'
require 'net/http'
url = URI("https://v5.oddspapi.io/zh/futures/mapping?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[
{
"bookmaker": "pinnacle",
"futureId": "id11000132131631",
"bookmakerFutureId": "1621504021",
"participantsRotated": false
},
{
"bookmaker": "pinnacle",
"futureId": "id11041564132792",
"bookmakerFutureId": "1621493680",
"participantsRotated": false
}
]授权
Your API key (query-based auth for v5).
查询参数
Single bookmaker slug.
Comma/space-separated internal futureIds.
Comma/space-separated provider future IDs.
⌘I