应用程式介面详细规格
API URL:
https://api.hkma.gov.hk/public/market-data-and-statistics/monthly-statistical-bulletin/efbn/efbn-tender-results-efn?segment=2year请求参数(必要)
| 参数名称 | 描述 | 
|---|---|
| segment | 用于指示要检索哪组数据。 格式: segment=data segment name (2year/3year/5year/7year/10year/15year) 例子: segment=2year | 
| 输出字段(JSON) | Swagger格式 | 
| 名称 | 类型 | 计量单位 | 描述 | 
|---|---|---|---|
| issue_date | 日期 | 发行日期 日期采用ISO格式yyyy-mm-dd,例如1997-01-01 | |
| coupon | 数字 | 年息 | 票面息率 | 
| average_yield_accepted | 数字 | % | 平均接纳收益率 | 
| amount_applied | 数字 | 百万港元 | 认购额 | 
| over_subscription | 数字 | 倍数 | 超额认购 | 
备注:
| 1. 由2015年1月起,金管局停止发行3年及以上年期的外汇基金债券。 | 
| 2. 由2007年中起,金管局停止发行7年年期的外汇基金债券。 | 
应用程式介面例子
Javascript例子
$.ajax({url: 'https://api.hkma.gov.hk/public/market-data-and-statistics/monthly-statistical-bulletin/efbn/efbn-tender-results-efn?segment=2year&offset=0',dataType:'json',success:function(data){alert('results found:'+ data.result.datasize)}});
Python例子
import urllib.requesturl = 'https://api.hkma.gov.hk/public/market-data-and-statistics/monthly-statistical-bulletin/efbn/efbn-tender-results-efn?segment=2year&offset=0'with urllib.request.urlopen (url) as req:print (req.read())
