Hkma Dataset
hkma_datasetFetch ANY HKMA public dataset by its endpoint path (the part after https://api.hkma.gov.hk/public/). Returns the uniform envelope: data rows are under result.records, total under result.datasize. Use this for any HKMA series not covered by a convenience tool. Verified example paths: "market-data-and-statistics/daily-monetary-statistics/daily-figures-interbank-liquidity" (daily HIBOR/aggregate balance/TWI), "market-data-and-statistics/daily-monetary-statistics/daily-figures-monetary-base" (monetary base components), "market-data-and-statistics/monthly-statistical-bulletin/er-ir/hk-interbank-ir-daily" (HIBOR fixings by tenor), "market-data-and-statistics/monthly-statistical-bulletin/er-ir/er-eeri-daily" (HKD exchange rates vs major currencies), "market-data-and-statistics/monthly-statistical-bulletin/er-ir/hkd-fer-daily" (HKD forward points), "market-data-and-statistics/monthly-statistical-bulletin/er-ir/composite-ir" (composite interest rate, monthly), "market-data-and-statistics/monthly-statistical-bulletin/banking/customer-deposits-by-currency", "coin-cart-schedule" (requires lang). Browse more at apidocs.hkma.gov.hk. Dates YYYY-MM-DD; paginate with offset/pagesize.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End of date window, YYYY-MM-DD (or YYYY-MM for monthly series), e.g. "2026-01-31". | |
| from | No | Start of date window, YYYY-MM-DD (or YYYY-MM for monthly series), e.g. "2026-01-01". | |
| lang | No | Language of text fields: "en" (default), "tc", or "sc". Required by some datasets (e.g. coin-cart-schedule). | |
| path | Yes | Endpoint path after /public/, no leading slash, e.g. "market-data-and-statistics/daily-monetary-statistics/daily-figures-interbank-liquidity". | |
| fields | No | Comma-separated subset of columns to return, e.g. "end_of_date,hibor_overnight". | |
| offset | No | Zero-based record offset for pagination. | |
| sortby | No | Column to sort by, e.g. "end_of_date". | |
| pagesize | No | Records per page (default ~100). Max varies by dataset. | |
| sortorder | No | Sort direction: "asc" or "desc". |