API Detailed Documentation
API URL:
https://api.hkma.gov.hk/public/market-data-and-statistics/monthly-statistical-bulletin/gov-bond/sec-mar-turnover-govbonds-ibip-remain-tenor
| |
Output Fields (JSON) | Swagger Format |
Name | Type | Unit Of Measure | Description |
---|---|---|---|
end_of_month | Date | During Year and Month in ISO format yyyy-mm, For example, 1997-01 | |
remain_1y_or_below_val | Number | HK$ million | 1 year or below Value |
remain_1y_or_below_vol | Number | 1 year or below Volume | |
remain_1yto3y_val | Number | HK$ million | Over 1 year & up to 3 years Value |
remain_1yto3y_vol | Number | Over 1 year & up to 3 years Volume | |
remain_3yto5y_val | Number | HK$ million | Over 3 years & up to 5 years Value |
remain_3yto5y_vol | Number | Over 3 years & up to 5 years Volume | |
remain_5yto7y_val | Number | HK$ million | Over 5 years & up to 7 years Value |
remain_5yto7y_vol | Number | Over 5 years & up to 7 years Volume | |
remain_7yto10y_val | Number | HK$ million | Over 7 years & up to 10 years Value |
remain_7yto10y_vol | Number | Over 7 years & up to 10 years Volume | |
remain_10yto15y_val | Number | HK$ million | Over 10 years & up to 15 years Value |
remain_10yto15y_vol | Number | Over 10 years & up to 15 years Volume | |
remain_total_val | Number | HK$ million | Total Value |
remain_total_vol | Number | Total Volume |
API Examples
Javascript Example
$.ajax({url: 'https://api.hkma.gov.hk/public/market-data-and-statistics/monthly-statistical-bulletin/gov-bond/sec-mar-turnover-govbonds-ibip-remain-tenor?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/monthly-statistical-bulletin/gov-bond/sec-mar-turnover-govbonds-ibip-remain-tenor?offset=0'with urllib.request.urlopen (url) as req:print (req.read())