接口用途

近年增发记录,按公告日倒序。

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

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

参数说明

参数名称是否必填说明示例
ts_code股票代码必填股票代码(可传 ts_code / code / symbol,6 位;带后缀自动规范为 6 位)000001

返回字段说明

字段类型说明
sdatestring公告日
typestring发行方式
pricestring发行价
tpricestring募资总额
fpricestring发行费用
amountstring发行数量

调用示例

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 的每分钟请求上限约束;高峰时可能排队或短暂不可用。

相关接口