外匯頭寸-其他外幣

應用程式介面詳細規格

API URL:

https://api.hkma.gov.hk/public/market-data-and-statistics/monthly-statistical-bulletin/banking/fc-position-other

API數據查詢

輸出字段(JSON) Swagger格式
名稱 類型 計量單位 描述
end_of_month日期期末數字
年份和月份採用ISO格式yyyy-mm,例如1997-01
spot_assets數字百萬港元其他外幣2
現貨資產
forward_purchases數字百萬港元其他外幣2
遠期買入額
spot_liabilities數字百萬港元其他外幣2
現貨負債
forward_sales數字百萬港元其他外幣2
遠期沽出額
net_spot_position數字百萬港元其他外幣2
現貨未平倉淨額
net_forward_position數字百萬港元其他外幣2
遠期未平倉淨額
open_position數字百萬港元其他外幣2
未平倉淨額

備註:

1. 由1990年7月起,外匯頭寸的定義不再包括結構資產及負債 (包括固定資產及物業投資、境外分行資本、於境外附屬公司和有關連公司的投資,以及借貸資本)。
2. 由1999年1月起, 歐元參與國貨幣的數字已填報於「歐元」項目下; 因此有關數字不能與過往月份的數字直接比較。

應用程式介面例子

Javascript例子

$.ajax({
url: 'https://api.hkma.gov.hk/public/market-data-and-statistics/monthly-statistical-bulletin/banking/fc-position-other?offset=0',
dataType:'json',
success:function(data){
alert('results found:'+ data.result.datasize)
}
});

Python例子

import urllib.request
url = 'https://api.hkma.gov.hk/public/market-data-and-statistics/monthly-statistical-bulletin/banking/fc-position-other?offset=0'
with urllib.request.urlopen (url) as req:
print (req.read())

如何使用應用程式介面

有關詳情,請瀏覧「應用程式介面規格」。