Update README and SKILL.md for get_historical_candles date/time range

Document the new from_date/to_date parameters, supported date formats,
resolution options, and usage examples including intraday time windows.
This commit is contained in:
Achmad
2026-05-17 08:14:10 +00:00
parent 79d1e0e538
commit c48e188b81
2 changed files with 76 additions and 0 deletions
+26
View File
@@ -16,6 +16,32 @@ MCP server that wraps the [tradingview-screener](https://github.com/shner-elmo/T
| `technical_scan` | Screen by technical indicator conditions |
| `fundamental_scan` | Screen by fundamental metrics |
### Historical Candles
| Tool | Description |
|------|-------------|
| `get_historical_candles` | Fetch OHLCV candlestick data with pattern detection |
Supports count-based and date/time range queries:
```python
# Last 30 daily candles
get_historical_candles("NASDAQ:AAPL")
# Specific date range (daily)
get_historical_candles("IDX:BBRI", from_date="2026-05-08", to_date="2026-05-13")
# Intraday — hourly candles for a date range
get_historical_candles("IDX:BBRI", resolution="60", from_date="2026-05-08", to_date="2026-05-13")
# Intraday — 1-minute candles for a specific time window
get_historical_candles("NASDAQ:AAPL", resolution="1", from_date="2026-05-17 14:00", to_date="2026-05-17 14:05")
```
**Resolutions:** `1`, `5`, `15`, `30`, `60`, `240` (minutes), `D` (daily, default), `W` (weekly), `M` (monthly)
**Date formats:** `YYYY-MM-DD`, `YYYY-MM-DD HH:MM`, or `YYYY-MM-DD HH:MM:SS` (all UTC). When only `from_date` is given, `to_date` defaults to now. Date-only `to_date` is inclusive (covers the full day through 23:59:59).
### Utilities
| Tool | Description |