接口用途
近年增发记录,按公告日倒序。
请求地址
POST https://liangmai.pro/api/gateway统一网关调用,query 参数携带 token(访问令牌)与 api=corp_issue(接口名),其余为业务参数。
参数说明
| 参数 | 名称 | 是否必填 | 说明 | 示例 |
|---|---|---|---|---|
ts_code | 股票代码 | 必填 | 股票代码(可传 ts_code / code / symbol,6 位;带后缀自动规范为 6 位) | 000001 |
返回字段说明
| 字段 | 类型 | 说明 |
|---|---|---|
sdate | string | 公告日 |
type | string | 发行方式 |
price | string | 发行价 |
tprice | string | 募资总额 |
fprice | string | 发行费用 |
amount | string | 发行数量 |
调用示例
Python
import requests
url = "https://liangmai.pro/api/gateway"
params = {
"token": "YOUR_TOKEN",
"api": "corp_issue",
"ts_code": "000001",
}
r = requests.post(url, params=params)
print(r.json())PHP
$url = "https://liangmai.pro/api/gateway";
$data = [
'token' => 'YOUR_TOKEN',
'api' => 'corp_issue',
'ts_code' => '000001',
];
$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: "corp_issue",
ts_code: "000001",
});
fetch("https://liangmai.pro/api/gateway", {
method: "POST",
body: params
})
.then(r => r.json())
.then(data => console.log(data));更新与限流
调用限制:受您当前 Token 的每分钟请求上限约束;高峰时可能排队或短暂不可用。