QuantAgent fetches all market data from Yahoo Finance viaDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Y-Research-SBU/QuantAgent/llms.txt
Use this file to discover all available pages before exploring further.
yfinance. Each
built-in asset has an internal code used throughout the UI and API, which maps
to the corresponding Yahoo Finance ticker at fetch time.
Built-in assets
| Code | Display name | Yahoo Finance symbol |
|---|---|---|
| SPX | S&P 500 | ^GSPC |
| BTC | Bitcoin | BTC-USD |
| GC | Gold Futures | GC=F |
| NQ | Nasdaq Futures | NQ=F |
| CL | Crude Oil | CL=F |
| ES | E-mini S&P 500 | ES=F |
| DJI | Dow Jones | ^DJI |
| QQQ | Invesco QQQ Trust | QQQ |
| VIX | Volatility Index | ^VIX |
| DXY | US Dollar Index | DX-Y.NYB |
| AAPL | Apple Inc. | AAPL |
| TSLA | Tesla Inc. | TSLA |
Timeframe limits
Yahoo Finance imposes per-interval lookback limits. The UI enforces these automatically; the programmatic API validates them viavalidate_date_range().
| Timeframe | Max lookback |
|---|---|
| 1m | 7 days |
| 5m | 60 days |
| 15m | 60 days |
| 30m | 60 days |
| 1h | 730 days |
| 4h | 730 days |
| 1d | 730 days |
| 1w | 730 days |
| 1mo | 730 days |
Yahoo Finance data availability varies by symbol and interval. Futures
contracts (
GC=F, NQ=F, CL=F, ES=F) carry limited historical depth
and roll between contract months, which can introduce gaps at expiry dates.
Index symbols (^GSPC, ^DJI, ^VIX) do not have intraday data older than
a few weeks.Adding custom assets
Any ticker that Yahoo Finance recognises can be added to the UI as a custom asset. Custom assets are stored server-side indata/custom_assets.json and
persist across server restarts.
Via the web interface
- Open the Asset dropdown in the UI.
- Click Add custom asset (or the equivalent input field).
- Enter the Yahoo Finance ticker symbol exactly as it appears on Yahoo Finance
(e.g.
NVDA,ETH-USD,SI=F). - Confirm. The symbol is saved via
POST /api/save-custom-assetand immediately appears in the dropdown.
Via the API
Programmatically
Data availability notes
- Short intraday windows: The 1-minute interval is capped at 7 days. Plan date ranges accordingly when analysing high-frequency strategies.
- Futures roll gaps: Continuous futures symbols (
=Fsuffix) may show price discontinuities around contract expiry. These are an artefact of Yahoo Finance’s data and not a QuantAgent issue. - Crypto:
BTC-USDand similar crypto pairs trade 24/7 and have no market-hours gaps, but Yahoo Finance may lag real-time prices by a few minutes. - Limited history for new listings: Recently IPO’d stocks or newly listed ETFs may not have enough historical data to satisfy larger timeframe windows.