外汇头寸-英镑

应用程式介面详细规格

API URL:

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

API数据查询

输出字段(JSON) Swagger格式
名称 类型 计量单位 描述
end_of_month日期期末数字
年份和月份采用ISO格式yyyy-mm,例如1997-01
spot_assets数字百万港元英镑
现货资产
forward_purchases数字百万港元英镑
远期买入额
spot_liabilities数字百万港元英镑
现货负债
forward_sales数字百万港元英镑
远期沽出额
net_spot_position数字百万港元英镑
现货未平仓净额
net_forward_position数字百万港元英镑
远期未平仓净额
open_position数字百万港元英镑
未平仓净额

备注:

1. 由1990年7月起,外汇头寸的定义不再包括结构资产及负债 (包括固定资产及物业投资、境外分行资本、于境外附属公司和有关连公司的投资,以及借贷资本)。

应用程式介面例子

Javascript例子

$.ajax({
url: 'https://api.hkma.gov.hk/public/market-data-and-statistics/monthly-statistical-bulletin/banking/fc-position-gbp?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-gbp?offset=0'
with urllib.request.urlopen (url) as req:
print (req.read())

如何使用应用程式介面

有关详情,请浏覧「应用程式介面规格」。