get_foreign_holdings
Get the daily foreign-shareholding percentage series for a CSE symbol — how much of the free float is held by foreign investors, tracked day by day. This is instrument-specific (a voting share and its non-voting counterpart can carry different foreign-holding levels), so an explicit instrument suffix (e.g. "SAMP.X0000") is honored rather than overridden with the voting-share default. Returns CSV, most recent limit days by default (page further back with offset); pass from/to to scope a range. A pct of null means the source data was internally inconsistent for that day (a known data-quality issue), not a true zero. If the symbol is ambiguous, returns JSON candidates instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End date in YYYY-MM-DD format. Omit for no upper bound. | |
| from | No | Start date in YYYY-MM-DD format. Omit for no lower bound. | |
| limit | No | Max days to return, most recent first internally but returned chronologically. Default 50, max 500. | |
| offset | No | Skip this many of the most recent matching days before taking `limit` — use to page further back in history. | |
| symbol | Yes | A CSE ticker or company name (e.g. "SAMP" or "Sampath Bank"), typo-tolerant. An explicit instrument suffix (e.g. "SAMP.X0000") is respected; otherwise defaults to the voting-share instrument. If ambiguous, the response returns candidates instead of data; ask the user to pick one and call again with the exact symbol. |