get_candles
Fetch OHLCV candles for a Bucharest Stock Exchange ticker. Returns historical open, high, low, close, and volume data with adjustable time window and resolution.
Instructions
Fetch OHLCV candles for a BVB ticker.
Returns bars oldest-first, each {time, open, high, low, close, volume} where time is an ISO 8601 UTC timestamp and volume is
an integer. An empty list means the datafeed had no data for the window
(not an error).
The window is resolved as: to defaults to now; countback (when
given) fixes the number of bars, otherwise it is derived from the
from_/to span (capped at 5000) or defaults to 300; from_
defaults to to minus countback bars. Daily bars reach back to
the 1990s; intraday resolutions only cover a recent window.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Window end, unix seconds (UTC). Defaults to now. | |
| from_ | No | Window start, unix seconds (UTC). Derived from countback if omitted. | |
| ticker | Yes | BVB ticker, e.g. "TLV", "SNP", or an index like "BET". | |
| adjusted | No | Split/dividend-adjusted prices (True) or raw (False). | |
| currency | No | Quote currency code, e.g. 'RON'. | RON |
| countback | No | Number of bars ending at 'to'. Overrides the from/to span when set; derived from the span (or defaults to 300) otherwise. | |
| resolution | No | Bar size (case-insensitive). Minutes: 1, 5, 15, 30, 60. Daily: 1D (or D). Weekly: 1W. Monthly: 1M. | 1D |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |