Skip to main content

Documentation Index

Fetch the complete documentation index at: https://lava.so/docs/llms.txt

Use this file to discover all available pages before exploring further.

Market data API for stocks, forex, and cryptocurrency. Best for historical time-series (intraday to monthly), technical indicators (SMA, RSI, MACD), fundamental data, and earnings. Distinguishes itself from paid market-data vendors with broad global coverage and simple REST access via a single /query endpoint parameterized by function. 12 example endpoints available through Lava’s AI Gateway. See the Alpha Vantage API docs for full documentation.
Supports both managed (Lava’s API keys) and unmanaged (bring your own credentials) mode.
This is a catch-all provider — any valid URL under https://www.alphavantage.co is supported. Alpha Vantage API. Construct URL as https://www.alphavantage.co/query?function={FUNCTION}&{params}. Example functions: TIME_SERIES_DAILY, GLOBAL_QUOTE, SYMBOL_SEARCH, CURRENCY_EXCHANGE_RATE, DIGITAL_CURRENCY_DAILY, SMA, RSI, MACD, NEWS_SENTIMENT, OVERVIEW, EARNINGS, BALANCE_SHEET, INCOME_STATEMENT, CASH_FLOW. The apikey query param is added automatically. Lava slims long-history responses by default — fundamentals (BALANCE_SHEET / INCOME_STATEMENT / CASH_FLOW / EARNINGS) cap at 12 most-recent quarterly + 5 annual entries, time series and indicators cap at 100 most-recent dated points, NEWS_SENTIMENT caps at 20 articles. Override per call with filter._lava_max_quarters, _lava_max_annual, _lava_max_points, _lava_max_articles, or pass filter.mode=“full” for the raw payload. The endpoints below are curated examples.

Endpoints

Daily OHLCV time series for a stock symbol. Lava caps Time Series (Daily) at the 100 most-recent dates by default and emits a _lava_truncated hint on the response when slimming applies; override with filter._lava_max_points or filter.mode=“full”.

GET https://www.alphavantage.co/query?function=TIME_SERIES_DAILY&symbol=IBM&outputsize=compact — $0.005 / request
const data = await lava.gateway('https://www.alphavantage.co/query?function=TIME_SERIES_DAILY&symbol=IBM&outputsize=compact', { method: 'GET' });

Latest price and volume for a single symbol

GET https://www.alphavantage.co/query?function=GLOBAL_QUOTE&symbol=IBM — $0.005 / request
const data = await lava.gateway('https://www.alphavantage.co/query?function=GLOBAL_QUOTE&symbol=IBM', { method: 'GET' });

Search for stock symbols by keywords

GET https://www.alphavantage.co/query?function=SYMBOL_SEARCH&keywords=tesla — $0.005 / request
const data = await lava.gateway('https://www.alphavantage.co/query?function=SYMBOL_SEARCH&keywords=tesla', { method: 'GET' });

Realtime exchange rate between two currencies

GET https://www.alphavantage.co/query?function=CURRENCY_EXCHANGE_RATE&from_currency=USD&to_currency=JPY — $0.005 / request
const data = await lava.gateway('https://www.alphavantage.co/query?function=CURRENCY_EXCHANGE_RATE&from_currency=USD&to_currency=JPY', { method: 'GET' });

Daily time series for a digital currency. Lava caps the dated dictionary at the 100 most-recent dates by default and emits a _lava_truncated hint when slimming applies; override with filter._lava_max_points or filter.mode=“full”.

GET https://www.alphavantage.co/query?function=DIGITAL_CURRENCY_DAILY&symbol=BTC&market=USD — $0.005 / request
const data = await lava.gateway('https://www.alphavantage.co/query?function=DIGITAL_CURRENCY_DAILY&symbol=BTC&market=USD', { method: 'GET' });

Simple moving average technical indicator. Lava caps the Technical Analysis: SMA dated dictionary at the 100 most-recent dates by default and emits a _lava_truncated hint when slimming applies; override with filter._lava_max_points or filter.mode=“full”.

GET https://www.alphavantage.co/query?function=SMA&symbol=IBM&interval=daily&time_period=20&series_type=close — $0.005 / request
const data = await lava.gateway('https://www.alphavantage.co/query?function=SMA&symbol=IBM&interval=daily&time_period=20&series_type=close', { method: 'GET' });

Company fundamentals, ratios, and key metrics

GET https://www.alphavantage.co/query?function=OVERVIEW&symbol=IBM — $0.005 / request
const data = await lava.gateway('https://www.alphavantage.co/query?function=OVERVIEW&symbol=IBM', { method: 'GET' });

Market news and sentiment scores by topic or ticker. Lava caps the feed array at 20 articles by default and emits a _lava_truncated hint on the response when slimming applies; override with filter._lava_max_articles or filter.mode=“full”.

GET https://www.alphavantage.co/query?function=NEWS_SENTIMENT&tickers=AAPL,MSFT — $0.005 / request
const data = await lava.gateway('https://www.alphavantage.co/query?function=NEWS_SENTIMENT&tickers=AAPL,MSFT', { method: 'GET' });

Annual and quarterly balance sheet for a public company (cash, investments, debt, equity). Lava returns the 12 most recent quarters and 5 most recent annual reports by default (newest-first); override with filter._lava_max_quarters / _lava_max_annual or pass filter.mode=“full” for the raw history (30-150+ quarters back to ~2006).

GET https://www.alphavantage.co/query?function=BALANCE_SHEET&symbol=IBM — $0.005 / request
const data = await lava.gateway('https://www.alphavantage.co/query?function=BALANCE_SHEET&symbol=IBM', { method: 'GET' });

Annual and quarterly income statement for a public company (revenue, margins, EPS). Lava returns the 12 most recent quarters and 5 most recent annual reports by default (newest-first); override with filter._lava_max_quarters / _lava_max_annual or pass filter.mode=“full” for the raw history.

GET https://www.alphavantage.co/query?function=INCOME_STATEMENT&symbol=IBM — $0.005 / request
const data = await lava.gateway('https://www.alphavantage.co/query?function=INCOME_STATEMENT&symbol=IBM', { method: 'GET' });

Annual and quarterly cash flow statement for a public company. Lava returns the 12 most recent quarters and 5 most recent annual reports by default (newest-first); override with filter._lava_max_quarters / _lava_max_annual or pass filter.mode=“full” for the raw history.

GET https://www.alphavantage.co/query?function=CASH_FLOW&symbol=IBM — $0.005 / request
const data = await lava.gateway('https://www.alphavantage.co/query?function=CASH_FLOW&symbol=IBM', { method: 'GET' });

Annual and quarterly earnings (EPS history) for a public company. Lava returns the 12 most recent quarters and 5 most recent annual entries by default (newest-first); override with filter._lava_max_quarters / _lava_max_annual or pass filter.mode=“full” for the raw history.

GET https://www.alphavantage.co/query?function=EARNINGS&symbol=IBM — $0.005 / request
const data = await lava.gateway('https://www.alphavantage.co/query?function=EARNINGS&symbol=IBM', { method: 'GET' });

Next Steps

All Providers

Browse all supported AI providers

Forward Proxy

Learn how to construct proxy URLs and authenticate requests