Get matched volume
curl --request GET \
--url https://api.4casters.io/exchange/getMatchedVolume \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.4casters.io/exchange/getMatchedVolume"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.4casters.io/exchange/getMatchedVolume', 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://api.4casters.io/exchange/getMatchedVolume",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://api.4casters.io/exchange/getMatchedVolume"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.4casters.io/exchange/getMatchedVolume")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.4casters.io/exchange/getMatchedVolume")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"startDate": "2026-08-10",
"endDate": "2026-08-11",
"matchedVolume": 6447933.01
}
}{
"error": "<string>"
}市场
获取已撮合成交量
一段日期范围内的全站已撮合成交量
GET
/
exchange
/
getMatchedVolume
Get matched volume
curl --request GET \
--url https://api.4casters.io/exchange/getMatchedVolume \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.4casters.io/exchange/getMatchedVolume"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.4casters.io/exchange/getMatchedVolume', 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://api.4casters.io/exchange/getMatchedVolume",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://api.4casters.io/exchange/getMatchedVolume"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.4casters.io/exchange/getMatchedVolume")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.4casters.io/exchange/getMatchedVolume")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"startDate": "2026-08-10",
"endDate": "2026-08-11",
"matchedVolume": 6447933.01
}
}{
"error": "<string>"
}返回一段 美国东部时间(ET)日历日 范围(首尾两天均含)内的全站已撮合成交量。
成交量如何计算
每笔已撮合投注计入撮合双方的本金:- 吃单方本金(撮合金额),加上
- 挂单方本金,由吃单赔率推导 — 吃单赔率为正时为
stake × odds / 100,为负时为stake × −100 / odds。
risk + win — 你的本金加上潜在利润,因为你的潜在利润恰好是对手方的本金。一笔 100、+150的吃单计为250 成交量(吃单方 100+挂单方150)。
成交量使用佣金前的原始本金。获取已撮合投注 上的
risk / win 字段已计入佣金,因此把它们相加会与此端点略有差异。新鲜度
已结束的 ET 日从最终日归档读取。如果范围结束于今天(晚于今天的endDate 会被截断到今天),会再加上当天撮合的实时汇总,因此当天部分会随投注撮合实时更新。
请求
GET /exchange/getMatchedVolume
string
必填
范围的第一个 ET 日历日,
YYYY-MM-DD(含)。string
必填
范围的最后一个 ET 日历日,
YYYY-MM-DD(含)。不得早于 startDate。晚于今天的日期会被截断到今天。curl "https://api.4casters.io/exchange/getMatchedVolume?startDate=2026-08-10&endDate=2026-08-11" \
-H "Authorization: Bearer YOUR_TOKEN"
响应
object
响应示例
{
"data": {
"startDate": "2026-08-10",
"endDate": "2026-08-11",
"matchedVolume": 6447933.012757301
}
}
速率限制
没有端点级限制 — 仅适用 全局每 IP 限制(滚动每分钟 3,000 次请求)。对于仪表盘,每隔几秒轮询一次完全足够;注意已最终确定的日期不会再变化,因此只有包含今天的范围才有必要重新轮询。错误
| 状态 | 含义 |
|---|---|
400 | startDate / endDate 缺失或格式错误(必须为 YYYY-MM-DD),或 startDate 晚于 endDate。 |
401 | 认证令牌缺失或无效。 |
429 | 超出全局每 IP 速率限制。请遵守 Retry-After 响应头。 |
503 | 触发了服务端 15 秒超时。可以安全重试。 |
授权
Pass your auth token in the Authorization header. The Bearer prefix is optional; the server also accepts a signed auth cookie or a token field in the request body.
查询参数
First ET calendar day of the range (YYYY-MM-DD, inclusive).
示例:
"2026-08-01"
Last ET calendar day of the range (YYYY-MM-DD, inclusive). Dates after today are clamped to today. Must not be before startDate.
示例:
"2026-08-11"
响应
Total matched volume for the range
Show child attributes
Show child attributes
此页面对您有帮助吗?