API Detailed Documentation
API URL:
https://api.hkma.gov.hk/public/market-data-and-statistics/daily-monetary-statistics/efbn-closing?segment=BillsRequest Parameters (Mandatory)
| Parameter Name | Description |
|---|---|
| segment | Used to indicate which sets of data are going to retrieve. Format: segment=data segment name (Bills/Notes) Example: segment=Bills |
Bills
| Output Fields (JSON) | Swagger Format |
| Name | Type | Unit Of Measure | Description |
|---|---|---|---|
| end_of_date | Date | Daily figure Date in ISO format yyyy-mm-dd, For example, 1997-01-01 |
|
| issue_no | Text | Issue Number | |
| maturity | Date | Maturity Date in ISO format yyyy-mm-dd, For example, 1997-01-01 |
|
| yield | Number | % | Yield1 |
Notes
| Output Fields (JSON) | Swagger Format |
| Name | Type | Unit Of Measure | Description |
|---|---|---|---|
| end_of_date | Date | Daily figure Date in ISO format yyyy-mm-dd, For example, 1997-01-01 |
|
| issue_no | Text | Issue Number | |
| maturity | Date | Maturity Date in ISO format yyyy-mm-dd, For example, 1997-01-01 |
|
| coupon | Number | % | Coupon |
| yield | Number | % | Yield1 |
| price | Number | HK$ | Price1 |
Footnotes:
| 1. Data powered by Thomson Reuters. |
| 2. Open API provides data on the latest business day only. |
API Examples
Javascript Example
$.ajax({url: 'https://api.hkma.gov.hk/public/market-data-and-statistics/daily-monetary-statistics/efbn-closing?segment=Bills&offset=0',dataType:'json',success:function(data){alert('results found:'+ data.result.datasize)}});
Python Example
import urllib.requesturl = 'https://api.hkma.gov.hk/public/market-data-and-statistics/daily-monetary-statistics/efbn-closing?segment=Bills&offset=0'with urllib.request.urlopen (url) as req:print (req.read())