TradingView Data API Docs

Access 160,000+ stocks, forex, cryptocurrencies, and ETF data from around the world. Supports REST API and ultra-low latency WebSocket.

Basic Information

  • Base URL: https://tradingview-data1.p.rapidapi.com
  • RapidAPI Host: tradingview-data1.p.rapidapi.com
  • API Version: 1.2.0
  • Supported Format: JSON

Authentication

All API requests require authentication via RapidAPI. Include the following headers in every request:

Request Headers
x-rapidapi-host: tradingview-data1.p.rapidapi.com
x-rapidapi-key: YOUR_RAPIDAPI_KEY
Important: Keep your API key secure and do not commit it to public repositories. Get your key on RapidAPI.

Rate Limit

Different subscription plans have different rate limits:

PlanMonthly QuotaRate LimitPrice
Basic150 requests/month1000 requests/hourFree
Pro30,000 requests/month5 requests/second$10/month
Ultra100,000 requests/month5 requests/second$30/month
Mega500,000 requests/month5 requests/second$80/month

Error Handling

API uses standard HTTP status codes to indicate request success or failure.

Common Status Codes

Status CodeNameDescription
200OKRequest successful
400Bad RequestInvalid request parameters or missing required parameters
401UnauthorizedAuthentication failed or invalid API key
404Not FoundRequested resource not found
429Too Many RequestsRate limit exceeded
500Internal Server ErrorInternal server error

Error Response Format

JSON Response
{
  "success": false,
  "error": {
    "code": "INVALID_SYMBOL",
    "message": "Symbol not found or invalid",
    "details": "The symbol 'INVALID:SYMBOL' does not exist"
  }
}

Health - Health Check

Used to check API server status and connection.

GET /health Try it →

Check API server running status, including authentication status and active session count

Request Examples

cURL
curl --request GET \
  --url 'https://tradingview-data1.p.rapidapi.com/health' \
  --header 'x-rapidapi-host: tradingview-data1.p.rapidapi.com' \
  --header 'x-rapidapi-key: YOUR_RAPIDAPI_KEY'
JavaScript (Fetch)
const response = await fetch('https://tradingview-data1.p.rapidapi.com/health', {
  method: 'GET',
  headers: {
    'x-rapidapi-host': 'tradingview-data1.p.rapidapi.com',
    'x-rapidapi-key': 'YOUR_RAPIDAPI_KEY'
  }
});
const data = await response.json();
console.log(data);
Python (Requests)
import requests

url = "https://tradingview-data1.p.rapidapi.com/health"
headers = {
    "x-rapidapi-host": "tradingview-data1.p.rapidapi.com",
    "x-rapidapi-key": "YOUR_RAPIDAPI_KEY"
}
response = requests.get(url, headers=headers)
print(response.json())

Response Examples

200 OK
{
  "success": true,
  "data": {
    "status": "ok",
    "timestamp": 1734234567890,
    "charts": 5,
    "quoteSessions": 10,
    "authenticated": true,
    "reconnectAttempts": 0
  }
}

Price - Price Data

Get candlestick (K-line) data with support for multiple timeframes.

GET /api/price/{symbol} Try it →

Get candlestick historical data for a specified trading pair

Path Parameters

ParameterTypeRequiredDescription
symbol string Trading pair symbol

Query Parameters

ParameterTypeRequiredDefaultDescription
timeframe string 5 Timeframe (1/5/15/30/60/240/D/W/M) (1, 5, 15, 30, 60, 240, D, W, M)
range integer 10 Number of historical data points
to integer Target timestamp (Unix timestamp in seconds)
type string Chart type (HeikinAshi/Range)

Request Examples

cURL
curl --request GET \
  --url 'https://tradingview-data1.p.rapidapi.com/api/price/BINANCE:BTCUSDT?timeframe=5&range=10' \
  --header 'x-rapidapi-host: tradingview-data1.p.rapidapi.com' \
  --header 'x-rapidapi-key: YOUR_RAPIDAPI_KEY'
JavaScript (Fetch)
const symbol = 'BINANCE:BTCUSDT';
const params = new URLSearchParams({ timeframe: '5', range: '10' });
const response = await fetch(`https://tradingview-data1.p.rapidapi.com/api/price/${symbol}?${params}`, {
  method: 'GET',
  headers: {
    'x-rapidapi-host': 'tradingview-data1.p.rapidapi.com',
    'x-rapidapi-key': 'YOUR_RAPIDAPI_KEY'
  }
});
const data = await response.json();
console.log(data);
Python (Requests)
import requests

symbol = "BINANCE:BTCUSDT"
url = f"https://tradingview-data1.p.rapidapi.com/api/price/{symbol}"
params = {"timeframe": "5", "range": "10"}
headers = {
    "x-rapidapi-host": "tradingview-data1.p.rapidapi.com",
    "x-rapidapi-key": "YOUR_RAPIDAPI_KEY"
}
response = requests.get(url, params=params, headers=headers)
print(response.json())

Response Examples

200 OK
{
  "success": true,
  "data": {
    "symbol": "BINANCE:BTCUSDT",
    "current": {
      "time": 1704067260,
      "open": 96432.50,
      "high": 96500.00,
      "low": 96400.25,
      "close": 96450.75,
      "volume": 123.45
    },
    "history": [...]
  }
}
POST /api/price/batch Try it →

Batch get candlestick data for multiple trading pairs (max 10)

Request Examples

cURL
curl --request POST \
  --url 'https://tradingview-data1.p.rapidapi.com/api/price/batch' \
  --header 'Content-Type: application/json' \
  --header 'x-rapidapi-host: tradingview-data1.p.rapidapi.com' \
  --header 'x-rapidapi-key: YOUR_RAPIDAPI_KEY' \
  --data '{"requests":[{"symbol":"BINANCE:BTCUSDT","timeframe":"60","range":20},{"symbol":"NASDAQ:AAPL","timeframe":"D","range":10}]}'
JavaScript (Fetch)
const response = await fetch('https://tradingview-data1.p.rapidapi.com/api/price/batch', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json',     'x-rapidapi-host': 'tradingview-data1.p.rapidapi.com',
    'x-rapidapi-key': 'YOUR_RAPIDAPI_KEY' },
  body: JSON.stringify({ requests: [
    { symbol: 'BINANCE:BTCUSDT', timeframe: '60', range: 20 },
    { symbol: 'NASDAQ:AAPL', timeframe: 'D', range: 10 }
  ]})
});
const data = await response.json();
console.log(data);
Python (Requests)
import requests

url = "https://tradingview-data1.p.rapidapi.com/api/price/batch"
headers = { "Content-Type": "application/json",     "x-rapidapi-host": "tradingview-data1.p.rapidapi.com",
    "x-rapidapi-key": "YOUR_RAPIDAPI_KEY" }
data = {"requests": [
    {"symbol": "BINANCE:BTCUSDT", "timeframe": "60", "range": 20},
    {"symbol": "NASDAQ:AAPL", "timeframe": "D", "range": 10}
]}
response = requests.post(url, json=data, headers=headers)
print(response.json())

Response Examples

200 OK
{
  "success": true,
  "data": [
    { "symbol": "BINANCE:BTCUSDT", "current": {...}, "history": [...] },
    { "symbol": "NASDAQ:AAPL", "current": {...}, "history": [...] }
  ]
}

Quote - Real-time Quote

Get real-time market quote data including price, volume, bid/ask spread, and more.

GET /api/quote/{symbol} Try it →

Get real-time quote data for a specified trading pair

Path Parameters

ParameterTypeRequiredDescription
symbol string Trading pair symbol

Query Parameters

ParameterTypeRequiredDefaultDescription
session string regular Trading session (regular/extended/premarket/postmarket)
fields string all Return fields (all or specific fields)

Request Examples

cURL
curl --request GET \
  --url 'https://tradingview-data1.p.rapidapi.com/api/quote/NASDAQ:AAPL' \
  --header 'x-rapidapi-host: tradingview-data1.p.rapidapi.com' \
  --header 'x-rapidapi-key: YOUR_RAPIDAPI_KEY'
JavaScript (Fetch)
const symbol = 'NASDAQ:AAPL';
const response = await fetch(`https://tradingview-data1.p.rapidapi.com/api/quote/${symbol}`, {
  method: 'GET',
  headers: {
    'x-rapidapi-host': 'tradingview-data1.p.rapidapi.com',
    'x-rapidapi-key': 'YOUR_RAPIDAPI_KEY'
  }
});
const data = await response.json();
console.log(data);
Python (Requests)
import requests

symbol = "NASDAQ:AAPL"
url = f"https://tradingview-data1.p.rapidapi.com/api/quote/{symbol}"
headers = {
    "x-rapidapi-host": "tradingview-data1.p.rapidapi.com",
    "x-rapidapi-key": "YOUR_RAPIDAPI_KEY"
}
response = requests.get(url, headers=headers)
print(response.json())

Response Examples

200 OK
{
  "success": true,
  "data": {
    "symbol": "NASDAQ:AAPL",
    "data": {
      "lp": 228.45,
      "ch": 2.83,
      "chp": 1.25,
      "volume": 52341567,
      "bid": 228.40,
      "ask": 228.50,
      "high_price": 229.10,
      "low_price": 225.80,
      "open_price": 226.50,
      "prev_close_price": 225.62
    }
  }
}
POST /api/quote/batch Try it →

Batch get real-time quotes for multiple trading pairs (max 10)

Request Examples

cURL
curl --request POST \
  --url 'https://tradingview-data1.p.rapidapi.com/api/quote/batch' \
  --header 'Content-Type: application/json' \
  --header 'x-rapidapi-host: tradingview-data1.p.rapidapi.com' \
  --header 'x-rapidapi-key: YOUR_RAPIDAPI_KEY' \
  --data '{"symbols":["NASDAQ:AAPL","NYSE:TSLA","BINANCE:BTCUSDT"]}'
JavaScript (Fetch)
const response = await fetch('https://tradingview-data1.p.rapidapi.com/api/quote/batch', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json',     'x-rapidapi-host': 'tradingview-data1.p.rapidapi.com',
    'x-rapidapi-key': 'YOUR_RAPIDAPI_KEY' },
  body: JSON.stringify({ symbols: ['NASDAQ:AAPL', 'NYSE:TSLA', 'BINANCE:BTCUSDT'] })
});
const data = await response.json();
console.log(data);
Python (Requests)
import requests

url = "https://tradingview-data1.p.rapidapi.com/api/quote/batch"
headers = { "Content-Type": "application/json",     "x-rapidapi-host": "tradingview-data1.p.rapidapi.com",
    "x-rapidapi-key": "YOUR_RAPIDAPI_KEY" }
data = {"symbols": ["NASDAQ:AAPL", "NYSE:TSLA", "BINANCE:BTCUSDT"]}
response = requests.post(url, json=data, headers=headers)
print(response.json())

Response Examples

200 OK
{
  "success": true,
  "data": [
    { "symbol": "NASDAQ:AAPL", "data": { "lp": 228.45, "chp": 1.25 } },
    { "symbol": "NYSE:TSLA", "data": { "lp": 412.30, "chp": -0.85 } },
    { "symbol": "BINANCE:BTCUSDT", "data": { "lp": 96432.50, "chp": 2.14 } }
  ]
}

Technical Analysis - Technical Analysis

Get professional technical analysis signals and detailed technical indicator data.

GET /api/ta/{symbol} Try it →

Get technical analysis data for a specified trading pair (multi-timeframe summary with buy/sell/neutral signals)

Path Parameters

ParameterTypeRequiredDescription
symbol string Trading pair symbol (e.g., BINANCE:BTCUSDT / NASDAQ:AAPL)

Request Examples

cURL
curl --request GET \
  --url 'https://tradingview-data1.p.rapidapi.com/api/ta/NASDAQ:AAPL' \
  --header 'x-rapidapi-host: tradingview-data1.p.rapidapi.com' \
  --header 'x-rapidapi-key: YOUR_RAPIDAPI_KEY'
JavaScript (Fetch)
const symbol = 'NASDAQ:AAPL';
const response = await fetch(`https://tradingview-data1.p.rapidapi.com/api/ta/${symbol}`, {
  method: 'GET',
  headers: {
    'x-rapidapi-host': 'tradingview-data1.p.rapidapi.com',
    'x-rapidapi-key': 'YOUR_RAPIDAPI_KEY'
  }
});
const data = await response.json();
console.log(data);
Python (Requests)
import requests

symbol = "NASDAQ:AAPL"
url = f"https://tradingview-data1.p.rapidapi.com/api/ta/{symbol}"
headers = {
    "x-rapidapi-host": "tradingview-data1.p.rapidapi.com",
    "x-rapidapi-key": "YOUR_RAPIDAPI_KEY"
}
response = requests.get(url, headers=headers)
print(response.json())

Response Examples

200 OK
{
  "success": true,
  "data": {
    "symbol": "NASDAQ:AAPL",
    "summary": { "recommendation": "BUY", "buy_count": 15, "sell_count": 3, "neutral_count": 8 },
    "oscillators": { "recommendation": "NEUTRAL", "values": { "RSI": 58.34, "MACD": 1.23 } },
    "moving_averages": { "recommendation": "BUY", "values": { "EMA10": 225.30, "SMA50": 214.80 } }
  }
}
GET /api/ta/{symbol}/indicators Try it →

Get detailed technical indicator data for a specified trading pair (including RSI, MACD, Stoch, CCI, ADX, moving averages, pivot points, etc.)

Path Parameters

ParameterTypeRequiredDescription
symbol string Trading pair symbol (e.g., NASDAQ:TSLA / BINANCE:BTCUSDT)

Request Examples

cURL
curl --request GET \
  --url 'https://tradingview-data1.p.rapidapi.com/api/ta/NASDAQ:AAPL/indicators' \
  --header 'x-rapidapi-host: tradingview-data1.p.rapidapi.com' \
  --header 'x-rapidapi-key: YOUR_RAPIDAPI_KEY'
JavaScript (Fetch)
const symbol = 'NASDAQ:AAPL';
const response = await fetch(`https://tradingview-data1.p.rapidapi.com/api/ta/${symbol}/indicators`, {
  method: 'GET',
  headers: {
    'x-rapidapi-host': 'tradingview-data1.p.rapidapi.com',
    'x-rapidapi-key': 'YOUR_RAPIDAPI_KEY'
  }
});
const data = await response.json();
console.log(data);
Python (Requests)
import requests

symbol = "NASDAQ:AAPL"
url = f"https://tradingview-data1.p.rapidapi.com/api/ta/{symbol}/indicators"
headers = {
    "x-rapidapi-host": "tradingview-data1.p.rapidapi.com",
    "x-rapidapi-key": "YOUR_RAPIDAPI_KEY"
}
response = requests.get(url, headers=headers)
print(response.json())

Response Examples

200 OK
{
  "success": true,
  "data": {
    "symbol": "NASDAQ:AAPL",
    "indicators": {
      "RSI": 58.34, "RSI[1]": 56.12,
      "MACD.macd": 1.23, "MACD.signal": 0.98,
      "ADX": 28.90, "BB.upper": 232.50, "BB.lower": 220.30
    },
    "pivot_points": {
      "classic": { "R1": 230.45, "PP": 228.10, "S1": 225.30 }
    }
  }
}

News - Financial News

Get the latest financial news and market information.

GET /api/news Try it →

Get financial news list, supports filtering by trading pair

Query Parameters

ParameterTypeRequiredDefaultDescription
symbol string Trading pair symbol (optional)
lang string en Language code (en/zh-Hans/ja, etc.)
market string Market type (stock/crypto, etc.)
market_country string Market country code (US/CN, etc.)

Request Examples

cURL
curl --request GET \
  --url 'https://tradingview-data1.p.rapidapi.com/api/news?symbol=NASDAQ:AAPL&lang=en' \
  --header 'x-rapidapi-host: tradingview-data1.p.rapidapi.com' \
  --header 'x-rapidapi-key: YOUR_RAPIDAPI_KEY'
JavaScript (Fetch)
const params = new URLSearchParams({ symbol: 'NASDAQ:AAPL', lang: 'en' });
const response = await fetch(`https://tradingview-data1.p.rapidapi.com/api/news?${params}`, {
  method: 'GET',
  headers: {
    'x-rapidapi-host': 'tradingview-data1.p.rapidapi.com',
    'x-rapidapi-key': 'YOUR_RAPIDAPI_KEY'
  }
});
const data = await response.json();
console.log(data);
Python (Requests)
import requests

url = "https://tradingview-data1.p.rapidapi.com/api/news"
params = {"symbol": "NASDAQ:AAPL", "lang": "en"}
headers = {
    "x-rapidapi-host": "tradingview-data1.p.rapidapi.com",
    "x-rapidapi-key": "YOUR_RAPIDAPI_KEY"
}
response = requests.get(url, params=params, headers=headers)
print(response.json())

Response Examples

200 OK
{
  "success": true,
  "data": {
    "news": [
      { "id": "news_123456", "title": "Apple Reports Record Q4 Earnings", "provider": "Reuters", "published": 1704067260 }
    ],
    "total": 10
  }
}

Other News Endpoints

  • GET /api/news/stock - Stock market news
  • GET /api/news/crypto - Cryptocurrency News
  • GET /api/news/forex - Forex market news
  • GET /api/news/futures - Futures market news
  • GET /api/news/bond - Bond market news
  • GET /api/news/etf - ETF market news
  • GET /api/news/economic - Economic news
  • GET /api/news/index - Index news
  • GET /api/news/{newsId} - Get news details

Leaderboard - Leaderboard

Get market leaderboard data including gainers, losers, and most active rankings.

GET /api/leaderboard/stocks Try it →

Get stock leaderboard data, requires market code

Query Parameters

ParameterTypeRequiredDefaultDescription
tab string Tab ID (all_stocks, gainers, losers, large_cap, small_cap, largest_employers, high_dividend, highest_net_income, highest_cash, highest_profit_per_employee, highest_revenue_per_employee, active, unusual_volume, most_volatile, high_beta, best_performing, highest_revenue, most_expensive, penny_stocks, overbought, oversold, ath, atl, 52wk_high, 52wk_low)
market_code string Market code (e.g., america, china, japan)
columnset string overview Column set (default: overview) (overview, performance, valuation, dividends, profitability, incomeStatement, balanceSheet, cashFlow, technicals)
start integer 0 Start position
count integer 20 Return count (max 150)
lang string en Language code

Request Examples

cURL
curl --request GET \
  --url 'https://tradingview-data1.p.rapidapi.com/api/leaderboard/stocks?tab=gainers&market_code=america&count=10' \
  --header 'x-rapidapi-host: tradingview-data1.p.rapidapi.com' \
  --header 'x-rapidapi-key: YOUR_RAPIDAPI_KEY'
JavaScript (Fetch)
const params = new URLSearchParams({ tab: 'gainers', market_code: 'america', count: '10' });
const response = await fetch(`https://tradingview-data1.p.rapidapi.com/api/leaderboard/stocks?${params}`, {
  method: 'GET',
  headers: {
    'x-rapidapi-host': 'tradingview-data1.p.rapidapi.com',
    'x-rapidapi-key': 'YOUR_RAPIDAPI_KEY'
  }
});
const data = await response.json();
console.log(data);
Python (Requests)
import requests

url = "https://tradingview-data1.p.rapidapi.com/api/leaderboard/stocks"
params = {"tab": "gainers", "market_code": "america", "count": 10}
headers = {
    "x-rapidapi-host": "tradingview-data1.p.rapidapi.com",
    "x-rapidapi-key": "YOUR_RAPIDAPI_KEY"
}
response = requests.get(url, params=params, headers=headers)
print(response.json())

Response Examples

200 OK
{
  "success": true,
  "data": {
    "data": [
      { "s": "NASDAQ:AAPL", "d": [228.45, 5.72, 52341567] }
    ],
    "totalCount": 50
  }
}

Other Leaderboard Endpoints

  • GET /api/leaderboard/crypto - Cryptocurrency Leaderboard
  • GET /api/leaderboard/forex - Forex Leaderboard
  • GET /api/leaderboard/futures - Futures Leaderboard
  • GET /api/leaderboard/indices - Indices Leaderboard
  • GET /api/leaderboard/bonds - Bonds Leaderboard
  • GET /api/leaderboard/corporate-bonds - Corporate Bonds Leaderboard
  • GET /api/leaderboard/etfs - ETF Leaderboard
  • GET /api/leaderboard/data - Get leaderboard data by config ID (Legacy)

Calendar - Financial Calendar

Get economic calendar, earnings calendar, dividends calendar, and IPO calendar data.

GET /api/calendar/economic Try it →

Get economic calendar events for specified time range and countries

Query Parameters

ParameterTypeRequiredDefaultDescription
from integer Start time (Unix timestamp in seconds). Time span cannot exceed 40 days
to integer End time (Unix timestamp in seconds). Time span cannot exceed 40 days
market string Market codes (supports multiple, comma-separated, e.g., america,china). Internally converted to country codes

Request Examples

cURL
curl --request GET \
  --url 'https://tradingview-data1.p.rapidapi.com/api/calendar/economic?from=1738368000&to=1738972800' \
  --header 'x-rapidapi-host: tradingview-data1.p.rapidapi.com' \
  --header 'x-rapidapi-key: YOUR_RAPIDAPI_KEY'
JavaScript (Fetch)
const params = new URLSearchParams({ from: '1738368000', to: '1738972800' });
const response = await fetch(`https://tradingview-data1.p.rapidapi.com/api/calendar/economic?${params}`, {
  method: 'GET',
  headers: {
    'x-rapidapi-host': 'tradingview-data1.p.rapidapi.com',
    'x-rapidapi-key': 'YOUR_RAPIDAPI_KEY'
  }
});
const data = await response.json();
console.log(data);
Python (Requests)
import requests

url = "https://tradingview-data1.p.rapidapi.com/api/calendar/economic"
params = {"from": 1738368000, "to": 1738972800}
headers = {
    "x-rapidapi-host": "tradingview-data1.p.rapidapi.com",
    "x-rapidapi-key": "YOUR_RAPIDAPI_KEY"
}
response = requests.get(url, params=params, headers=headers)
print(response.json())

Response Examples

200 OK
{
  "success": true,
  "data": {
    "events": [
      { "date": "2026-02-01", "country": "US", "event": "GDP Growth Rate", "importance": "high", "actual": "2.9%", "forecast": "2.8%" }
    ],
    "total": 50
  }
}

Other Calendar Endpoints

  • GET /api/calendar/earnings - Earnings Calendar
  • GET /api/calendar/revenue - Dividends Calendar
  • GET /api/calendar/ipo - IPO Calendar

Metadata - Metadata

Get API configuration metadata and reference data.

GET /api/metadata/languages Try it →

Return list of supported languages

Request Examples

cURL
curl --request GET \
  --url 'https://tradingview-data1.p.rapidapi.com/api/metadata/languages' \
  --header 'x-rapidapi-host: tradingview-data1.p.rapidapi.com' \
  --header 'x-rapidapi-key: YOUR_RAPIDAPI_KEY'
JavaScript (Fetch)
const response = await fetch('https://tradingview-data1.p.rapidapi.com/api/metadata/languages', {
  method: 'GET',
  headers: {
    'x-rapidapi-host': 'tradingview-data1.p.rapidapi.com',
    'x-rapidapi-key': 'YOUR_RAPIDAPI_KEY'
  }
});
const data = await response.json();
console.log(data);
Python (Requests)
import requests

url = "https://tradingview-data1.p.rapidapi.com/api/metadata/languages"
headers = {
    "x-rapidapi-host": "tradingview-data1.p.rapidapi.com",
    "x-rapidapi-key": "YOUR_RAPIDAPI_KEY"
}
response = requests.get(url, headers=headers)
print(response.json())

Response Examples

200 OK
{
  "success": true,
  "data": {
    "languages": [
      { "code": "en", "name": "English" },
      { "code": "zh", "name": "Chinese" },
      { "code": "ja", "name": "Japanese" }
    ]
  }
}

Metadata Endpoints

  • GET /api/metadata/markets - Get all available market codes
  • GET /api/metadata/tabs - Get all available tab configurations
  • GET /api/metadata/columnsets - Get column set metadata by asset type
  • GET /api/metadata/languages - Get supported language list
  • GET /api/metadata/exchanges - Get all available exchanges list
  • GET /api/metadata/world-economy/indicators - Get world economy indicators list

World Economy - Economic Indicators

Get world economic indicators ranking by country and region, with real-time data from TradingView scanner.

GET /api/world-economy/indicators/{indicator} Try it →

Filter economic indicators of various countries by region, retrieved in real-time from TradingView scanner, sorted by latest value descending.

Path Parameters

ParameterTypeRequiredDescription
indicator string Indicator slug (e.g., full-year-gdp-growth). Full list at GET /api/metadata/world-economy/indicators

Query Parameters

ParameterTypeRequiredDefaultDescription
region string g20 Region: g20, world, north-america, europe, middle-east-africa, latin-america, asia-pacific

Request Examples

cURL
curl --request GET \
  --url 'https://tradingview-data1.p.rapidapi.com/api/world-economy/indicators/full-year-gdp-growth?region=g20' \
  --header 'x-rapidapi-host: tradingview-data1.p.rapidapi.com' \
  --header 'x-rapidapi-key: YOUR_RAPIDAPI_KEY'
JavaScript (Fetch)
const indicator = 'full-year-gdp-growth';
const params = new URLSearchParams({ region: 'g20' });
const response = await fetch(`https://tradingview-data1.p.rapidapi.com/api/world-economy/indicators/${indicator}?${params}`, {
  method: 'GET',
  headers: {
    'x-rapidapi-host': 'tradingview-data1.p.rapidapi.com',
    'x-rapidapi-key': 'YOUR_RAPIDAPI_KEY'
  }
});
const data = await response.json();
console.log(data);
Python (Requests)
import requests

indicator = "full-year-gdp-growth"
url = f"https://tradingview-data1.p.rapidapi.com/api/world-economy/indicators/{indicator}"
params = {"region": "g20"}
headers = {
    "x-rapidapi-host": "tradingview-data1.p.rapidapi.com",
    "x-rapidapi-key": "YOUR_RAPIDAPI_KEY"
}
response = requests.get(url, params=params, headers=headers)
print(response.json())

Response Examples

200 OK
{
  "success": true,
  "data": {
    "indicator": "full-year-gdp-growth",
    "region": "g20",
    "total": 20,
    "rows": [
      {
        "symbol": "INFYGDPG",
        "full_symbol": "ECONOMICS:INFYGDPG",
        "name": "India Full Year GDP Growth",
        "country_code": "IN",
        "latest": 7.6,
        "previous": 7.1,
        "observation": "2026",
        "unit": "Percent",
        "frequency": "Annual"
      }
    ]
  },
  "msg": "Success"
}
GET /api/metadata/world-economy/indicators Try it →

Returns world economy indicators list with category filtering. Use this to discover all available indicator slugs.

Query Parameters

ParameterTypeRequiredDefaultDescription
category string Category filter (e.g., gdp). Multiple comma-separated (e.g., gdp,lbr)

Request Examples

cURL
curl --request GET \
  --url 'https://tradingview-data1.p.rapidapi.com/api/metadata/world-economy/indicators?category=gdp' \
  --header 'x-rapidapi-host: tradingview-data1.p.rapidapi.com' \
  --header 'x-rapidapi-key: YOUR_RAPIDAPI_KEY'
JavaScript (Fetch)
const params = new URLSearchParams({ category: 'gdp' });
const response = await fetch(`https://tradingview-data1.p.rapidapi.com/api/metadata/world-economy/indicators?${params}`, {
  method: 'GET',
  headers: {
    'x-rapidapi-host': 'tradingview-data1.p.rapidapi.com',
    'x-rapidapi-key': 'YOUR_RAPIDAPI_KEY'
  }
});
const data = await response.json();
console.log(data);
Python (Requests)
import requests

url = "https://tradingview-data1.p.rapidapi.com/api/metadata/world-economy/indicators"
params = {"category": "gdp"}
headers = {
    "x-rapidapi-host": "tradingview-data1.p.rapidapi.com",
    "x-rapidapi-key": "YOUR_RAPIDAPI_KEY"
}
response = requests.get(url, params=params, headers=headers)
print(response.json())

Response Examples

200 OK
{
  "success": true,
  "data": {
    "total": 12,
    "category": "gdp",
    "categories": [
      { "category": "gdp", "label": "GDP" },
      { "category": "lbr", "label": "Labour" }
    ],
    "indicators": [
      { "slug": "full-year-gdp-growth", "label": "Full Year GDP Growth", "categories": ["gdp"] },
      { "slug": "gdp-growth-rate", "label": "GDP Growth Rate", "categories": ["gdp"] }
    ]
  }
}

MCP - MCP Token

Generate JWT tokens for MCP connections. The token is required for SSE streaming authentication.

POST /mcp/generate Try it →

Generate JWT token for MCP connections. Required for SSE streaming authentication.

Request Body

JSON
{}

Request Examples

cURL
curl --request POST \
  --url 'https://tradingview-data1.p.rapidapi.com/mcp/generate' \
  --header 'Content-Type: application/json' \
  --header 'x-rapidapi-host: tradingview-data1.p.rapidapi.com' \
  --header 'x-rapidapi-key: YOUR_RAPIDAPI_KEY' \
  --data '{"userId": "user123"}'
JavaScript (Fetch)
const response = await fetch('https://tradingview-data1.p.rapidapi.com/mcp/generate', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'x-rapidapi-host': 'tradingview-data1.p.rapidapi.com',
    'x-rapidapi-key': 'YOUR_RAPIDAPI_KEY'
  },
  body: JSON.stringify({ })
});
const data = await response.json();
console.log(data.token); // Use this JWT for SSE authentication
Python (Requests)
import requests

url = "https://tradingview-data1.p.rapidapi.com/mcp/generate"
headers = {
    "Content-Type": "application/json",
    "x-rapidapi-host": "tradingview-data1.p.rapidapi.com",
    "x-rapidapi-key": "YOUR_RAPIDAPI_KEY"
}
data = {}
response = requests.post(url, json=data, headers=headers)
print(response.json()['token'])

Response Examples

200 OK
{
  "success": true,
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "expiresIn": "1 day",
  "expiresAt": 1705567890123,
  "mcpUrl": "https://tradingview-data1.p.rapidapi.com/mcp"
}

SSE - Real-time Streaming

Subscribe to real-time price updates and quotes via Server-Sent Events (SSE). Requires JWT token from MCP endpoint.

GET /sse/stream Try it →

Server-Sent Events endpoint for real-time price and quote streaming. Requires JWT via Authorization header (get token from POST /mcp/generate first).

Query Parameters

ParameterTypeRequiredDefaultDescription
symbols string Comma-separated symbols (e.g., BINANCE:BTCUSDT,NASDAQ:AAPL)
type string quote Subscription type: quote for real-time quotes, price for K-line data

Request Examples

cURL
# Step 1: Generate JWT token
curl --request POST \
  --url 'https://tradingview-data1.p.rapidapi.com/mcp/generate' \
  --header 'Content-Type: application/json' \
  --header 'x-rapidapi-host: tradingview-data1.p.rapidapi.com' \
  --header 'x-rapidapi-key: YOUR_RAPIDAPI_KEY' \
  --data '{}'

# Step 2: Connect to SSE stream
curl --request GET \
  --url 'https://tradingview-data1.p.rapidapi.com/sse/stream?symbols=BINANCE:BTCUSDT,NASDAQ:AAPL&type=quote' \
  --header 'Authorization: Bearer YOUR_JWT_TOKEN' \
  --header 'x-rapidapi-host: tradingview-data1.p.rapidapi.com' \
  --header 'x-rapidapi-key: YOUR_RAPIDAPI_KEY'
JavaScript (Fetch)
// Step 1: Generate JWT token
const tokenRes = await fetch('https://tradingview-data1.p.rapidapi.com/mcp/generate', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'x-rapidapi-host': 'tradingview-data1.p.rapidapi.com',
    'x-rapidapi-key': 'YOUR_RAPIDAPI_KEY'
  },
  body: JSON.stringify({})
});
const { token } = await tokenRes.json();

// Step 2: Connect to SSE stream
const params = new URLSearchParams({
  symbols: 'BINANCE:BTCUSDT,NASDAQ:AAPL',
  type: 'quote'
});
const eventSource = new EventSource(
  `https://tradingview-data1.p.rapidapi.com/sse/stream?${params}`
);
eventSource.addEventListener('quote_update', (e) => {
  const update = JSON.parse(e.data);
  console.log(update.symbol, update.data.lp);
});
Python (Requests)
import requests, sseclient

# Step 1: Generate JWT token
token_res = requests.post(
    'https://tradingview-data1.p.rapidapi.com/mcp/generate',
    json={},
    headers={
        'x-rapidapi-host': 'tradingview-data1.p.rapidapi.com',
        'x-rapidapi-key': 'YOUR_RAPIDAPI_KEY'
    }
)
token = token_res.json()['token']

# Step 2: Connect to SSE stream
response = requests.get(
    'https://tradingview-data1.p.rapidapi.com/sse/stream',
    params={'symbols': 'BINANCE:BTCUSDT,NASDAQ:AAPL', 'type': 'quote'},
    headers={
        'Authorization': f'Bearer {token}',
        'x-rapidapi-host': 'tradingview-data1.p.rapidapi.com',
        'x-rapidapi-key': 'YOUR_RAPIDAPI_KEY'
    },
    stream=True
)
for event in sseclient.SSEClient(response).events():
    print(event.event, event.data)

Response Examples

200 OK
event: connected
data: {"message":"SSE connection established","timestamp":1710379554586}

event: quote_update
data: {"type":"quote_update","symbol":"BINANCE:BTCUSDT","data":{"lp":50000,"ch":500,"chp":1.01},"timestamp":1710379554586}

event: heartbeat
data: {"timestamp":1710379554586}

Ideas - Community Ideas

Get TradingView community trading ideas, opinions, and analysis from traders worldwide.

GET /api/ideas/hot Try it →

Get TradingView hot ideas list, supports pagination

Query Parameters

ParameterTypeRequiredDefaultDescription
page integer 1 Page number (default: 1)
lang string en Language code (e.g., en, zh_CN)

Request Examples

cURL
curl --request GET \
  --url 'https://tradingview-data1.p.rapidapi.com/api/ideas/hot?page=1&lang=en' \
  --header 'x-rapidapi-host: tradingview-data1.p.rapidapi.com' \
  --header 'x-rapidapi-key: YOUR_RAPIDAPI_KEY'
JavaScript (Fetch)
const params = new URLSearchParams({ page: '1', lang: 'en' });
const response = await fetch(`https://tradingview-data1.p.rapidapi.com/api/ideas/hot?${params}`, {
  method: 'GET',
  headers: {
    'x-rapidapi-host': 'tradingview-data1.p.rapidapi.com',
    'x-rapidapi-key': 'YOUR_RAPIDAPI_KEY'
  }
});
const data = await response.json();
console.log(data);
Python (Requests)
import requests

url = "https://tradingview-data1.p.rapidapi.com/api/ideas/hot"
params = {"page": 1, "lang": "en"}
headers = {
    "x-rapidapi-host": "tradingview-data1.p.rapidapi.com",
    "x-rapidapi-key": "YOUR_RAPIDAPI_KEY"
}
response = requests.get(url, params=params, headers=headers)
print(response.json())

Response Examples

200 OK
{
  "success": true,
  "data": {
    "ideas": [
      {
        "id": "abc123",
        "title": "Bitcoin Bullish Pattern",
        "author": "trader_pro",
        "symbol": "BINANCE:BTCUSDT",
        "image_url": "LfKFTY2N",
        "published": 1704067200
      }
    ]
  }
}
GET /api/ideas/editors-picks Try it →

Get TradingView editors picks ideas list, supports pagination

Query Parameters

ParameterTypeRequiredDefaultDescription
page integer 1 Page number (default: 1, homepage does not use page-1)
lang string en Language code (e.g., en, zh_CN)

Request Examples

cURL
curl --request GET \
  --url 'https://tradingview-data1.p.rapidapi.com/api/ideas/editors-picks?page=1&lang=en' \
  --header 'x-rapidapi-host: tradingview-data1.p.rapidapi.com' \
  --header 'x-rapidapi-key: YOUR_RAPIDAPI_KEY'
JavaScript (Fetch)
const params = new URLSearchParams({ page: '1', lang: 'en' });
const response = await fetch(`https://tradingview-data1.p.rapidapi.com/api/ideas/editors-picks?${params}`, {
  method: 'GET',
  headers: {
    'x-rapidapi-host': 'tradingview-data1.p.rapidapi.com',
    'x-rapidapi-key': 'YOUR_RAPIDAPI_KEY'
  }
});
const data = await response.json();
console.log(data);
Python (Requests)
import requests

url = "https://tradingview-data1.p.rapidapi.com/api/ideas/editors-picks"
params = {"page": 1, "lang": "en"}
headers = {
    "x-rapidapi-host": "tradingview-data1.p.rapidapi.com",
    "x-rapidapi-key": "YOUR_RAPIDAPI_KEY"
}
response = requests.get(url, params=params, headers=headers)
print(response.json())

Response Examples

200 OK
{
  "success": true,
  "data": {
    "ideas": [
      {
        "id": "xyz789",
        "title": "S&P 500 Technical Analysis",
        "author": "market_expert",
        "symbol": "SP:SPX",
        "image_url": "MnPqRs3T"
      }
    ]
  }
}
GET /api/ideas/{symbol}/minds Try it →

Get TradingView minds list for a specific stock

Path Parameters

ParameterTypeRequiredDescription
symbol string Stock symbol (e.g., AAPL)

Query Parameters

ParameterTypeRequiredDefaultDescription
lang string en Language code (e.g., en, zh_CN)

Request Examples

cURL
curl --request GET \
  --url 'https://tradingview-data1.p.rapidapi.com/api/ideas/NASDAQ:AAPL/minds?lang=en' \
  --header 'x-rapidapi-host: tradingview-data1.p.rapidapi.com' \
  --header 'x-rapidapi-key: YOUR_RAPIDAPI_KEY'
JavaScript (Fetch)
const symbol = 'NASDAQ:AAPL';
const params = new URLSearchParams({ lang: 'en' });
const response = await fetch(`https://tradingview-data1.p.rapidapi.com/api/ideas/${symbol}/minds?${params}`, {
  method: 'GET',
  headers: {
    'x-rapidapi-host': 'tradingview-data1.p.rapidapi.com',
    'x-rapidapi-key': 'YOUR_RAPIDAPI_KEY'
  }
});
const data = await response.json();
console.log(data);
Python (Requests)
import requests

symbol = "NASDAQ:AAPL"
url = f"https://tradingview-data1.p.rapidapi.com/api/ideas/{symbol}/minds"
params = {"lang": "en"}
headers = {
    "x-rapidapi-host": "tradingview-data1.p.rapidapi.com",
    "x-rapidapi-key": "YOUR_RAPIDAPI_KEY"
}
response = requests.get(url, params=params, headers=headers)
print(response.json())

Response Examples

200 OK
{
  "success": true,
  "data": {
    "bullish": 65,
    "bearish": 20,
    "neutral": 15,
    "total": 100
  }
}
GET /api/ideas/list/{symbol} Try it →

Get TradingView ideas list by stock symbol, supports pagination

Path Parameters

ParameterTypeRequiredDescription
symbol string Stock symbol (e.g., NASDAQ:AAPL)

Query Parameters

ParameterTypeRequiredDefaultDescription
page integer 1 Page number (default: 1)
per_page integer 20 Items per page (default: 20)
lang string en Language code (e.g., en, zh_CN)

Request Examples

cURL
curl --request GET \
  --url 'https://tradingview-data1.p.rapidapi.com/api/ideas/list/NASDAQ:AAPL?page=1&per_page=20&lang=en' \
  --header 'x-rapidapi-host: tradingview-data1.p.rapidapi.com' \
  --header 'x-rapidapi-key: YOUR_RAPIDAPI_KEY'
JavaScript (Fetch)
const symbol = 'NASDAQ:AAPL';
const params = new URLSearchParams({ page: '1', per_page: '20', lang: 'en' });
const response = await fetch(`https://tradingview-data1.p.rapidapi.com/api/ideas/list/${symbol}?${params}`, {
  method: 'GET',
  headers: {
    'x-rapidapi-host': 'tradingview-data1.p.rapidapi.com',
    'x-rapidapi-key': 'YOUR_RAPIDAPI_KEY'
  }
});
const data = await response.json();
console.log(data);
Python (Requests)
import requests

symbol = "NASDAQ:AAPL"
url = f"https://tradingview-data1.p.rapidapi.com/api/ideas/list/{symbol}"
params = {"page": 1, "per_page": 20, "lang": "en"}
headers = {
    "x-rapidapi-host": "tradingview-data1.p.rapidapi.com",
    "x-rapidapi-key": "YOUR_RAPIDAPI_KEY"
}
response = requests.get(url, params=params, headers=headers)
print(response.json())

Response Examples

200 OK
{
  "success": true,
  "data": {
    "ideas": [
      {
        "id": "def456",
        "title": "Apple Stock Analysis",
        "author": "tech_analyst",
        "image_url": "AbCdEf1G"
      }
    ],
    "total": 150
  }
}
GET /api/ideas/{imageUrl} Try it →

Get detailed content of community idea by image_url

Path Parameters

ParameterTypeRequiredDescription
imageUrl string Idea image URL (from image_url field in list)

Request Examples

cURL
curl --request GET \
  --url 'https://tradingview-data1.p.rapidapi.com/api/ideas/LfKFTY2N' \
  --header 'x-rapidapi-host: tradingview-data1.p.rapidapi.com' \
  --header 'x-rapidapi-key: YOUR_RAPIDAPI_KEY'
JavaScript (Fetch)
const imageUrl = 'LfKFTY2N';
const response = await fetch(`https://tradingview-data1.p.rapidapi.com/api/ideas/${imageUrl}`, {
  method: 'GET',
  headers: {
    'x-rapidapi-host': 'tradingview-data1.p.rapidapi.com',
    'x-rapidapi-key': 'YOUR_RAPIDAPI_KEY'
  }
});
const data = await response.json();
console.log(data);
Python (Requests)
import requests

image_url = "LfKFTY2N"
url = f"https://tradingview-data1.p.rapidapi.com/api/ideas/{image_url}"
headers = {
    "x-rapidapi-host": "tradingview-data1.p.rapidapi.com",
    "x-rapidapi-key": "YOUR_RAPIDAPI_KEY"
}
response = requests.get(url, headers=headers)
print(response.json())

Response Examples

200 OK
{
  "success": true,
  "data": {
    "id": "LfKFTY2N",
    "title": "Bitcoin Bullish Pattern",
    "content": "Detailed analysis content...",
    "author": "trader_pro",
    "symbol": "BINANCE:BTCUSDT",
    "published": 1704067200
  }
}

Market Data - Market Data

Get comprehensive market data including company information, financials, analyst recommendations, and more.

GET /api/market-data/{symbol} Try it →

Get all market data for specified symbol, including company info, financial data, technical indicators, and 10 other categories

Path Parameters

ParameterTypeRequiredDescription
symbol string Trading symbol

Request Examples

cURL
curl --request GET \
  --url 'https://tradingview-data1.p.rapidapi.com/api/market-data/NASDAQ:AAPL' \
  --header 'x-rapidapi-host: tradingview-data1.p.rapidapi.com' \
  --header 'x-rapidapi-key: YOUR_RAPIDAPI_KEY'
JavaScript (Fetch)
const symbol = 'NASDAQ:AAPL';
const response = await fetch(`https://tradingview-data1.p.rapidapi.com/api/market-data/${symbol}`, {
  method: 'GET',
  headers: {
    'x-rapidapi-host': 'tradingview-data1.p.rapidapi.com',
    'x-rapidapi-key': 'YOUR_RAPIDAPI_KEY'
  }
});
const data = await response.json();
console.log(data);
Python (Requests)
import requests

symbol = "NASDAQ:AAPL"
url = f"https://tradingview-data1.p.rapidapi.com/api/market-data/{symbol}"
headers = {
    "x-rapidapi-host": "tradingview-data1.p.rapidapi.com",
    "x-rapidapi-key": "YOUR_RAPIDAPI_KEY"
}
response = requests.get(url, headers=headers)
print(response.json())

Response Examples

200 OK
{
  "success": true,
  "data": {
    "symbol": "NASDAQ:AAPL",
    "company": { "name": "Apple Inc", "sector": "Technology" },
    "indicators": { "price_earnings_ttm": 28.5, "market_cap_basic": 3500000000000 },
    "financials_quarterly": { "total_revenue_fq": 119575000000 }
  }
}
GET /api/market-data/{symbol}/company Try it →

Get company name, industry, country, exchange, and other basic information

Path Parameters

ParameterTypeRequiredDescription
symbol string

Request Examples

cURL
curl --request GET \
  --url 'https://tradingview-data1.p.rapidapi.com/api/market-data/NASDAQ:AAPL/company' \
  --header 'x-rapidapi-host: tradingview-data1.p.rapidapi.com' \
  --header 'x-rapidapi-key: YOUR_RAPIDAPI_KEY'
JavaScript (Fetch)
const symbol = 'NASDAQ:AAPL';
const response = await fetch(`https://tradingview-data1.p.rapidapi.com/api/market-data/${symbol}/company`, {
  method: 'GET',
  headers: {
    'x-rapidapi-host': 'tradingview-data1.p.rapidapi.com',
    'x-rapidapi-key': 'YOUR_RAPIDAPI_KEY'
  }
});
const data = await response.json();
console.log(data);
Python (Requests)
import requests

symbol = "NASDAQ:AAPL"
url = f"https://tradingview-data1.p.rapidapi.com/api/market-data/{symbol}/company"
headers = {
    "x-rapidapi-host": "tradingview-data1.p.rapidapi.com",
    "x-rapidapi-key": "YOUR_RAPIDAPI_KEY"
}
response = requests.get(url, headers=headers)
print(response.json())

Response Examples

200 OK
{
  "success": true,
  "data": {
    "symbol": "NASDAQ:AAPL",
    "company": {
      "name": "Apple Inc",
      "description": "Apple Inc",
      "sector": "Technology",
      "industry": "Consumer Electronics",
      "country": "US",
      "exchange": "NASDAQ"
    }
  }
}
GET /api/market-data/{symbol}/analyst-recommendations Try it →

Get analyst buy/hold/sell recommendations, price targets, and other analyst rating data

Path Parameters

ParameterTypeRequiredDescription
symbol string

Request Examples

cURL
curl --request GET \
  --url 'https://tradingview-data1.p.rapidapi.com/api/market-data/NASDAQ:AAPL/analyst-recommendations' \
  --header 'x-rapidapi-host: tradingview-data1.p.rapidapi.com' \
  --header 'x-rapidapi-key: YOUR_RAPIDAPI_KEY'
JavaScript (Fetch)
const symbol = 'NASDAQ:AAPL';
const response = await fetch(`https://tradingview-data1.p.rapidapi.com/api/market-data/${symbol}/analyst-recommendations`, {
  method: 'GET',
  headers: {
    'x-rapidapi-host': 'tradingview-data1.p.rapidapi.com',
    'x-rapidapi-key': 'YOUR_RAPIDAPI_KEY'
  }
});
const data = await response.json();
console.log(data);
Python (Requests)
import requests

symbol = "NASDAQ:AAPL"
url = f"https://tradingview-data1.p.rapidapi.com/api/market-data/{symbol}/analyst-recommendations"
headers = {
    "x-rapidapi-host": "tradingview-data1.p.rapidapi.com",
    "x-rapidapi-key": "YOUR_RAPIDAPI_KEY"
}
response = requests.get(url, headers=headers)
print(response.json())

Response Examples

200 OK
{
  "success": true,
  "data": {
    "symbol": "NASDAQ:AAPL",
    "analyst_recommendations": {
      "recommendation_total_buy": 25,
      "recommendation_total_hold": 8,
      "recommendation_total_sell": 2,
      "price_target_average": 245.50
    }
  }
}
GET /api/market-data/{symbol}/cash-flow Try it →

Get operating, investing, financing cash flow and other cash flow statement data

Path Parameters

ParameterTypeRequiredDescription
symbol string

Request Examples

cURL
curl --request GET \
  --url 'https://tradingview-data1.p.rapidapi.com/api/market-data/NASDAQ:AAPL/cash-flow' \
  --header 'x-rapidapi-host: tradingview-data1.p.rapidapi.com' \
  --header 'x-rapidapi-key: YOUR_RAPIDAPI_KEY'
JavaScript (Fetch)
const symbol = 'NASDAQ:AAPL';
const response = await fetch(`https://tradingview-data1.p.rapidapi.com/api/market-data/${symbol}/cash-flow`, {
  method: 'GET',
  headers: {
    'x-rapidapi-host': 'tradingview-data1.p.rapidapi.com',
    'x-rapidapi-key': 'YOUR_RAPIDAPI_KEY'
  }
});
const data = await response.json();
console.log(data);
Python (Requests)
import requests

symbol = "NASDAQ:AAPL"
url = f"https://tradingview-data1.p.rapidapi.com/api/market-data/{symbol}/cash-flow"
headers = {
    "x-rapidapi-host": "tradingview-data1.p.rapidapi.com",
    "x-rapidapi-key": "YOUR_RAPIDAPI_KEY"
}
response = requests.get(url, headers=headers)
print(response.json())

Response Examples

200 OK
{
  "success": true,
  "data": {
    "symbol": "NASDAQ:AAPL",
    "cash_flow": {
      "cash_f_operating_activities_fq": 34545000000,
      "cash_f_investing_activities_fq": -2156000000,
      "cash_f_financing_activities_fq": -24789000000
    }
  }
}

Other Market Data Endpoints

  • GET /api/market-data/{symbol}/ipo - IPO Information
  • GET /api/market-data/{symbol}/indicators - Technical Indicators
  • GET /api/market-data/{symbol}/ttm - TTM Data
  • GET /api/market-data/{symbol}/current - Current Financial Metrics
  • GET /api/market-data/{symbol}/financials-quarterly - Quarterly Financials
  • GET /api/market-data/{symbol}/financials-annual - Annual Financials
  • GET /api/market-data/{symbol}/history-quarterly - Quarterly History
  • GET /api/market-data/{symbol}/history-annual - Annual History
  • GET /api/market-data/{symbol}/dividend - Dividend Data
  • GET /api/market-data/{symbol}/enterprise-value - Enterprise Value
  • GET /api/market-data/{symbol}/credit-ratings - Credit Ratings