接口用途
个股散户净流入额倒序排列。
请求地址
POST https://liangmai.pro/api/gateway统一网关调用,query 参数携带 token(访问令牌)与 api=flow_retail_inflow_rank(接口名),其余为业务参数。
返回字段说明
| 字段 | 类型 | 说明 |
|---|---|---|
t | string | 服务器更新时间yyyy-MM-ddHH:mm:ss |
mc | string | 名称 |
dm | string | 代码 |
zxj | number | 最新价(元) |
zdf | number | 涨跌幅(%) |
hsl | number | 换手率(%) |
cje | number | 成交额(元) |
shlczj | number | 散户流出资金(元) |
shlrzj | number | 散户流入资金(元) |
shjlr | number | 散户净流入(元) |
shjlrl | number | 散户净流入率(%) |
lczj | number | 流出资金(元),与shlczj同值 |
lrzj | number | 流入资金(元),与shlrzj同值 |
jlr | number | 净流入(元),与shjlr同值 |
jlrl | number | 净流入率(%),与shjlrl同值 |
调用示例
Python
import requests
url = "https://liangmai.pro/api/gateway"
params = {
"token": "YOUR_TOKEN",
"api": "flow_retail_inflow_rank",
}
r = requests.post(url, params=params)
print(r.json())PHP
$url = "https://liangmai.pro/api/gateway";
$data = [
'token' => 'YOUR_TOKEN',
'api' => 'flow_retail_inflow_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_retail_inflow_rank",
});
fetch("https://liangmai.pro/api/gateway", {
method: "POST",
body: params
})
.then(r => r.json())
.then(data => console.log(data));更新与限流
数据更新:每日15:40 ·