Get batch minute data for multiple symbols
curl --request POST \
--url https://api.reportify.cn/v1/quant/quotes/minute/batch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"symbols": [
"<string>"
],
"start_datetime": "<string>",
"end_datetime": "<string>",
"market": "cn",
"stock_type": "stock"
}
'import requests
url = "https://api.reportify.cn/v1/quant/quotes/minute/batch"
payload = {
"symbols": ["<string>"],
"start_datetime": "<string>",
"end_datetime": "<string>",
"market": "cn",
"stock_type": "stock"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
symbols: ['<string>'],
start_datetime: '<string>',
end_datetime: '<string>',
market: 'cn',
stock_type: 'stock'
})
};
fetch('https://api.reportify.cn/v1/quant/quotes/minute/batch', 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.reportify.cn/v1/quant/quotes/minute/batch",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'symbols' => [
'<string>'
],
'start_datetime' => '<string>',
'end_datetime' => '<string>',
'market' => 'cn',
'stock_type' => 'stock'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.reportify.cn/v1/quant/quotes/minute/batch"
payload := strings.NewReader("{\n \"symbols\": [\n \"<string>\"\n ],\n \"start_datetime\": \"<string>\",\n \"end_datetime\": \"<string>\",\n \"market\": \"cn\",\n \"stock_type\": \"stock\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.reportify.cn/v1/quant/quotes/minute/batch")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"symbols\": [\n \"<string>\"\n ],\n \"start_datetime\": \"<string>\",\n \"end_datetime\": \"<string>\",\n \"market\": \"cn\",\n \"stock_type\": \"stock\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.reportify.cn/v1/quant/quotes/minute/batch")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"symbols\": [\n \"<string>\"\n ],\n \"start_datetime\": \"<string>\",\n \"end_datetime\": \"<string>\",\n \"market\": \"cn\",\n \"stock_type\": \"stock\"\n}"
response = http.request(request)
puts response.read_body{
"datas": [
{}
],
"metadata": {}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}行情数据
批量分时数据
批量获取多只股票的分时数据
POST
/
v1
/
quant
/
quotes
/
minute
/
batch
Get batch minute data for multiple symbols
curl --request POST \
--url https://api.reportify.cn/v1/quant/quotes/minute/batch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"symbols": [
"<string>"
],
"start_datetime": "<string>",
"end_datetime": "<string>",
"market": "cn",
"stock_type": "stock"
}
'import requests
url = "https://api.reportify.cn/v1/quant/quotes/minute/batch"
payload = {
"symbols": ["<string>"],
"start_datetime": "<string>",
"end_datetime": "<string>",
"market": "cn",
"stock_type": "stock"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
symbols: ['<string>'],
start_datetime: '<string>',
end_datetime: '<string>',
market: 'cn',
stock_type: 'stock'
})
};
fetch('https://api.reportify.cn/v1/quant/quotes/minute/batch', 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.reportify.cn/v1/quant/quotes/minute/batch",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'symbols' => [
'<string>'
],
'start_datetime' => '<string>',
'end_datetime' => '<string>',
'market' => 'cn',
'stock_type' => 'stock'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.reportify.cn/v1/quant/quotes/minute/batch"
payload := strings.NewReader("{\n \"symbols\": [\n \"<string>\"\n ],\n \"start_datetime\": \"<string>\",\n \"end_datetime\": \"<string>\",\n \"market\": \"cn\",\n \"stock_type\": \"stock\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.reportify.cn/v1/quant/quotes/minute/batch")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"symbols\": [\n \"<string>\"\n ],\n \"start_datetime\": \"<string>\",\n \"end_datetime\": \"<string>\",\n \"market\": \"cn\",\n \"stock_type\": \"stock\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.reportify.cn/v1/quant/quotes/minute/batch")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"symbols\": [\n \"<string>\"\n ],\n \"start_datetime\": \"<string>\",\n \"end_datetime\": \"<string>\",\n \"market\": \"cn\",\n \"stock_type\": \"stock\"\n}"
response = http.request(request)
puts response.read_body{
"datas": [
{}
],
"metadata": {}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}批量获取多只股票的分时数据。
数据按日期(升序)和股票代码排序。
curl -X POST "https://api.reportify.cn/v1/quant/quotes/minute/batch" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"market": "cn",
"symbols": ["000001", "000002", "600519"],
"start_datetime": "2026-04-01 09:30:00",
"end_datetime": "2026-04-01 15:00:00"
}'
import requests
response = requests.post(
"https://api.reportify.cn/v1/quant/quotes/minute/batch",
headers={"Authorization": "Bearer <token>"},
json={
"market": "cn",
"symbols": ["000001", "000002", "600519"],
"start_datetime": "2026-04-01 09:30:00",
"end_datetime": "2026-04-01 15:00:00"
}
)
print(response.json())
const response = await fetch('https://api.reportify.cn/v1/quant/quotes/minute/batch', {
method: 'POST',
headers: {
'Authorization': 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
market: 'cn',
symbols: ['000001', '000002', '600519'],
start_datetime: '2026-04-01 09:30:00',
end_datetime: '2026-04-01 15:00:00'
})
});
const data = await response.json();
请求参数
string
default:"cn"
股票市场:
cn(A股), hk(港股), us(美股)string[]
required
股票代码列表(至少 1 个)
string
required
开始时间,格式:
YYYY-MM-DD HH:MM:SSstring
required
结束时间,格式:
YYYY-MM-DD HH:MM:SS响应参数
array
object
查询元数据
响应示例
{
"datas": [
{
"market": "cn",
"date": "2026-04-01 09:30:00",
"symbol": "000001",
"current": 10.58,
"high": 10.62,
"low": 10.55,
"avg": 10.59,
"volume": 1234567,
"amount": 13072345.67,
"chg_percent": 0.1899,
"chg": 0.02
},
{
"market": "cn",
"date": "2026-04-01 09:30:00",
"symbol": "000002",
"current": 15.80,
"high": 15.95,
"low": 15.75,
"avg": 15.85,
"volume": 987654,
"amount": 15652345.60,
"chg_percent": 0.3185,
"chg": 0.05
},
{
"market": "cn",
"date": "2026-04-01 09:31:00",
"symbol": "000001",
"current": 10.61,
"high": 10.65,
"low": 10.58,
"avg": 10.60,
"volume": 2345678,
"amount": 24864187.80,
"chg_percent": 0.4751,
"chg": 0.05
},
{
"market": "cn",
"date": "2026-04-01 09:31:00",
"symbol": "000002",
"current": 15.90,
"high": 16.10,
"low": 15.85,
"avg": 15.92,
"volume": 1876543,
"amount": 29843567.30,
"chg_percent": 0.9554,
"chg": 0.15
}
],
"metadata": {
"market": "cn",
"symbols": ["000001", "000002", "600519"],
"start_datetime": "2026-04-01 09:30:00",
"end_datetime": "2026-04-01 15:00:00",
"count": 4
}
}
使用示例
批量获取当日交易数据
import requests
from datetime import datetime
from collections import defaultdict
today = datetime.now().strftime("%Y-%m-%d")
response = requests.post(
"https://api.reportify.cn/v1/quant/quotes/minute/batch",
headers={"Authorization": "Bearer <token>"},
json={
"market": "cn",
"symbols": ["000001", "000002", "600519"],
"start_datetime": f"{today} 09:30:00",
"end_datetime": f"{today} 15:00:00"
}
)
data = response.json()
# 按股票分组
by_symbol = defaultdict(list)
for row in data["datas"]:
by_symbol[row["symbol"]].append(row)
# 输出每只股票的最新数据
for symbol, rows in by_symbol.items():
latest = rows[-1]
print(f"{symbol}: {latest['date']} 价{latest['current']} 量{latest['volume']}")
批量获取港股数据
response = requests.post(
"https://api.reportify.cn/v1/quant/quotes/minute/batch",
headers={"Authorization": "Bearer <token>"},
json={
"market": "hk",
"symbols": ["00700", "09988", "09618"],
"start_datetime": "2026-04-01 09:30:00",
"end_datetime": "2026-04-01 16:00:00"
}
)
批量获取美股数据
response = requests.post(
"https://api.reportify.cn/v1/quant/quotes/minute/batch",
headers={"Authorization": "Bearer <token>"},
json={
"market": "us",
"symbols": ["AAPL", "MSFT", "GOOGL", "NVDA"],
"start_datetime": "2026-04-01 09:30:00",
"end_datetime": "2026-04-01 16:00:00"
}
)
Authorizations
Enter your Bearer token
Body
application/json
Input for batch minute data request.
List of stock codes (required)
Minimum array length:
1Start datetime (YYYY-MM-DD HH:MM:SS) (required)
End datetime (YYYY-MM-DD HH:MM:SS) (required)
Stock market
Available options:
cn, hk, us, global Stock type
Available options:
stock, etf, index, sw ⌘I
