接口用途

根据【参数】(见下方“【参数】说明”)获取代销机构中的银行、证券公司、独立资金销售机构,根据近三月超额收益率倒序。

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

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

返回字段说明

字段类型说明
dmstring机构代码
mcstring机构名称
lxrstring联系人
bdstring电话(与ph同值)
numnumber代销数(只)
phstring电话(与bd同值,兼容字段)

调用示例

Python
import requests

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

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

更新与限流

数据更新:每日21:30 ·

相关接口