Trade in total

API Detailed Documentation

API URL:

API Data Enquiry

Output Fields (JSON) Swagger Format
 
Name Type Unit Of Measure Description
Tr_yr Date Year
Tr_imp_a Number IMPORT 
Tr_exp_a Number EXPORT 
Tr_reexp_a Number   RE-EXPORT 
Tr_trade_a Number TOTAL TRADE 
Footnotes
Hong Kong Trade Statistics: Import, Export, Re-exports, Total Trade.
Unit: HKD Million
Period: 1920-2002 
Source:  1. 1921-25: Hong Kong Blue Book.
2. 1931-67: Hong Kong Statistics 1947-67.
3. 1968-2002: Hong Kong Annual Digest of Statistics.
Note: 1. The data for 1921-25 are originally reported in pound sterling.
The data are converted into HK dollor by multiplying the exchange rate of HK dollar in pound sterling on it.
The exchange rate of HK dollar in those years are the mean of annual highest and annual lowest from C.F. Joseph Tom's (1964),
The Entrepot Trade and the Monetary Standard of Hong Kong, 1842-1941, Appendix 13.
Trade with the United Kingdom
Unit: Trade between the UK and HK: thousand HK dollars, thousand UK Pounds.
Total trade figures for the UK: million UK Pound.
Period: 1843-1940 
Source:  C.F. Joseph Tom (1964), The Entrepot Trade and the Monetary Standards of Hong Kong, 1842-1941: Appendix 1.
Trade with China
Unit: 1864-1932 silver in HaiKwan Taels
1933-1940 HK dollar
Period: 1864-1940
Source:  G.B. Endacott (1964), An Eastern Entrepot: document 33.
Trade with Japan
Unit: Japanese Yen.
Period: 1883-1938 
Source:  Naikaku Tōkeikyoku (Japan), Resume Statistique de l’empire du Japon.
Trade with the United States
Unit: US Dollar.
Period: 1889-1898 
Source:  Frank H. Hitchcock (1990), Our Trade with Japan, China, and Hongkong 1889-1899.
Javascript Example
$.ajax({
url: 'https://api.hkma.gov.hk/public/hkimr/trade-total?offset=0',
dataType:'json',
success:function(data){
alert('results found:'+ data.result.datasize)
}
});
 
Python Example
import urllib.request
url = 'https://api.hkma.gov.hk/public/hkimr/trade-total?offset=0'
with urllib.request.urlopen (url) as req:
print (req.read())