get_chart
Render a candlestick + volume chart image (PNG) for a CSE symbol -- hand this to the user directly instead of describing price action from raw OHLC rows. EOD data only for now (daily/weekly/monthly bars, most recent bars periods) -- doesn't yet reflect today's live intraday movement. If the symbol is ambiguous, returns JSON candidates instead of an image.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bars | No | Number of most-recent bars to show. Default 90, max 250. | |
| theme | No | Chart color theme. Default light. | light |
| 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 an image; ask the user to pick one and call again with the exact symbol. | |
| interval | No | Bar interval. Default daily. | daily |