接口用途

个股净流入率倒序排列。

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

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

返回字段说明

字段类型说明
tstring服务器更新时间yyyy-MM-ddHH:mm:ss
mcstring名称
dmstring代码
zxjnumber最新价(元)
zdfnumber涨跌幅(%)
hslnumber换手率(%)
cjenumber成交额(元)
lczjnumber流出资金(元)
lrzjnumber流入资金(元)
jlrstring净流入(元)
jlrlstring净流入率(%)

调用示例

Python
import requests

url = "https://liangmai.pro/api/gateway"
params = {
    "token": "YOUR_TOKEN",
    "api": "flow_net_inflow_rate_rank",
}
r = requests.post(url, params=params)
print(r.json())
PHP
$url = "https://liangmai.pro/api/gateway";
$data = [
    'token' => 'YOUR_TOKEN',
    'api' => 'flow_net_inflow_rate_rank',
];
$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: "flow_net_inflow_rate_rank",
});

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

更新与限流

数据更新:每日15:40 ·

相关接口