get_price_history
Retrieve OHLCV price history for cryptocurrency markets by aggregating raw trades into candlestick data for specified time periods.
Instructions
IMPORTANT: Candles are aggregated client-side from raw trades (Buda has no native candlestick endpoint) — fetching more trades via the 'limit' parameter gives deeper history but slower responses. Returns OHLCV candles (open/high/low/close as floats in quote currency; volume as float in base currency) for periods 5m, 15m, 30m, 1h, 4h, or 1d. Candle timestamps are UTC bucket boundaries. Example: 'Show me the hourly BTC-CLP price chart for the past 24 hours.'
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| market_id | Yes | Market ID (e.g. 'BTC-CLP', 'ETH-BTC'). | |
| period | No | Candle period: '5m', '15m', '30m', '1h', '4h', or '1d'. Default: '1h'. | 1h |
| limit | No | Raw trades to fetch before aggregation (default: 100, max: 1000). More trades = deeper history but slower response. |