API Detailed Documentation
API URL:
https://api.hkma.gov.hk/public/market-data-and-statistics/monthly-statistical-bulletin/er-ir/hkd-fer-daily
| |
Output Fields (JSON) | Swagger Format |
Name | Type | Unit Of Measure | Description |
---|---|---|---|
end_of_day | Date | As at end of Date in ISO format yyyy-mm-dd, For example, 1997-01-01 | |
hkd_fer_spot | Number | HKD against USD | Spot |
hkd_fer_1w | Number | HKD against USD | 1-week |
hkd_fer_1m | Number | HKD against USD | 1-month |
hkd_fer_3m | Number | HKD against USD | 3-month |
hkd_fer_6m | Number | HKD against USD | 6-month |
hkd_fer_9m | Number | HKD against USD | 9-month |
hkd_fer_12m | Number | HKD against USD | 12-month |
Footnotes:
1. Hong Kong dollar forward exchange rates refer to the premium/discount on the closing middle telegraphic transfer spot rates of HKD against USD in the interbank market from Reuters. Since May 1997, the rates are those quoted by the Hang Seng Bank. |
API Examples
Javascript Example
$.ajax({url: 'https://api.hkma.gov.hk/public/market-data-and-statistics/monthly-statistical-bulletin/er-ir/hkd-fer-daily?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/er-ir/hkd-fer-daily?offset=0'with urllib.request.urlopen (url) as req:print (req.read())