接口用途

早盘热点板块或极速下跌板块竞价:按日期区间与多空类型查询量脉侧板块竞价榜单,便于观察资金方向(业务成功时 code 多为 200;data 与量脉返回一致)。

请求地址POST https://liangmai.pro/api/gateway

统一网关调用,query 参数携带 token(访问令牌)与 api=auction_morning_sector(接口名),其余为业务参数。

参数说明

参数名称是否必填说明示例
startDate开始日期必填开始日期,格式 yyyy-MM-dd2024-01-01
endDate结束日期必填结束日期,格式 yyyy-MM-dd2024-01-15
type类型必填类型(整型,含义见接口说明;取值待确认)1

返回字段说明

以下为量脉 data 中单条板块记录常见字段(键名区分大小写,以实际响应为准)。

字段类型说明
bkCodestring板块代码
bkNamestring板块名称
ldstring多空力度,数值越大越好
jjzfstring竞价涨幅
szjsstring上涨家数
xdjsstring下跌家数
typestring1 看多,0 看空
datestring日期或时间

调用示例

Python
import requests

url = "https://liangmai.pro/api/gateway"
params = {
    "token": "YOUR_TOKEN",
    "api": "auction_morning_sector",
    "startDate": "2024-01-01",
    "endDate": "2024-01-15",
}
r = requests.post(url, params=params)
print(r.json())
PHP
$url = "https://liangmai.pro/api/gateway";
$data = [
    'token' => 'YOUR_TOKEN',
    'api' => 'auction_morning_sector',
    'startDate' => '2024-01-01',
    'endDate' => '2024-01-15',
];
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$res = curl_exec($ch);
curl_close($ch);
echo $res;
JavaScript
const params = new URLSearchParams({
    token: "YOUR_TOKEN",
    api: "auction_morning_sector",
    startDate: "2024-01-01",
    endDate: "2024-01-15",
});

fetch("https://liangmai.pro/api/gateway", {
  method: "POST",
  body: params
})
  .then(r => r.json())
  .then(data => console.log(data));

更新与限流

数据更新:交易日上午约 9:26 起有数据更新(以量脉为准)。

相关接口