API Detailed Documentation
API URL:
https://api.hkma.gov.hk/public/market-data-and-statistics/monthly-statistical-bulletin/er-ir/er-eeri-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 | |
usd | Number | HKD per unit of foreign currency | U.S. dollar |
gbp | Number | HKD per unit of foreign currency | Sterling |
jpy | Number | HKD per unit of foreign currency | Japanese yen |
cad | Number | HKD per unit of foreign currency | Canadian dollar |
aud | Number | HKD per unit of foreign currency | Australian dollar |
sgd | Number | HKD per unit of foreign currency | Singapore dollar |
twd | Number | HKD per unit of foreign currency | New Taiwan dollar |
chf | Number | HKD per unit of foreign currency | Swiss franc |
cny | Number | HKD per unit of foreign currency | Chinese renminbi |
krw | Number | HKD per unit of foreign currency | Korean won |
thb | Number | HKD per unit of foreign currency | Thai baht |
myr | Number | HKD per unit of foreign currency | Malaysian ringgit |
dem | Number | HKD per unit of foreign currency | Deutsche-mark |
nlg | Number | HKD per unit of foreign currency | Dutch guilder |
bef | Number | HKD per unit of foreign currency | Belgian franc |
frf | Number | HKD per unit of foreign currency | French franc |
itl | Number | HKD per unit of foreign currency | Italian lira |
eur | Number | HKD per unit of foreign currency | Euro |
php | Number | HKD per unit of foreign currency | Philippine peso |
inr | Number | HKD per unit of foreign currency | Indian Rupee |
idr | Number | HKD per unit of foreign currency | Indonesian rupiah |
zar | Number | HKD per unit of foreign currency | South African Rand |
special_drawing_rights | Number | HKD per unit of foreign currency | SDR |
neeri_1983_trade_wgt | Number | HKD per unit of foreign currency | Nominal effective exchange rate indices (11.1983 = 100) Trade-weighted |
neeri_1983_import_wgt | Number | HKD per unit of foreign currency | Nominal effective exchange rate indices (11.1983 = 100) Import-weighted |
neeri_1983_export_wgt | Number | HKD per unit of foreign currency | Nominal effective exchange rate indices (11.1983 = 100) Export-weighted |
neeri_2000_trade_wgt | Number | HKD per unit of foreign currency | Nominal effective exchange rate indices (01.2000 = 100) Trade-weighted |
neeri_2000_import_wgt | Number | HKD per unit of foreign currency | Nominal effective exchange rate indices (01.2000 = 100) Import-weighted |
neeri_2000_export_wgt | Number | HKD per unit of foreign currency | Nominal effective exchange rate indices (01.2000 = 100) Export-weighted |
neeri_2010_trade_wgt | Number | HKD per unit of foreign currency | Nominal effective exchange rate indices (01.2010 = 100) Trade-weighted |
neeri_2010_import_wgt | Number | HKD per unit of foreign currency | Nominal effective exchange rate indices (01.2010 = 100) Import-weighted |
neeri_2010_export_wgt | Number | HKD per unit of foreign currency | Nominal effective exchange rate indices (01.2010 = 100) Export-weighted |
neeri_2020_trade_wgt | Number | HKD per unit of foreign currency | Nominal effective exchange rate indices (01.2020 = 100) Trade-weighted |
neeri_2020_import_wgt | Number | HKD per unit of foreign currency | Nominal effective exchange rate indices (01.2020 = 100) Import-weighted |
neeri_2020_export_wgt | Number | HKD per unit of foreign currency | Nominal effective exchange rate indices (01.2020 = 100) Export-weighted |
Footnotes:
1. The nominal effective exchange rate indices are compiled by the Census and Statistics Department using Hong Kong dollar exchange rates against foreign currencies based on the average closing middle market telegraphic transfer rates or notes rates supplied by the Hang Seng Bank Limited, except that the exchange rate of Macao Pataca is set to be 1. The SDR figures are provided by the International Monetary Fund. |
API Examples
Javascript Example
$.ajax({url: 'https://api.hkma.gov.hk/public/market-data-and-statistics/monthly-statistical-bulletin/er-ir/er-eeri-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/er-eeri-daily?offset=0'with urllib.request.urlopen (url) as req:print (req.read())