# TradingView Quote API

> Get a comprehensive real-time forex quote including current price, OHLC, bid/ask spread, volume, change, technical summary, key indicators, and performance metrics.

Source: https://www.sandbase.ai/apis/tradingview/quote
API reference: https://www.sandbase.ai/apis/tradingview/quote#api

## Facts

- Provider: TradingView
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/tradingview/quote`
- Price: $0.03 per call
- Capabilities: api, tradingview, finance, forex
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

`POST https://api.sandbase.ai/v1/api/tradingview/quote` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `symbol` | string | no |  |
| `exchange` | string | no | FX, OANDA, FX_IDC |

## FAQ

### How do I use the TradingView Quote API?

Send a POST request to https://api.sandbase.ai/v1/api/tradingview/quote with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

### How much does the TradingView Quote API cost?

$0.03 per call, billed from your SandBase balance. You are only charged for calls you make; there is no subscription.

### What parameters does the TradingView Quote API accept?

No parameters are required. Optional: symbol (string) and exchange (one of FX, OANDA, FX_IDC). The Parameters table and the Playground on this page list every field.

### What does the TradingView Quote API return?

A JSON response returned in the same HTTP request (synchronous).

### Do I need a TradingView developer account or API key?

No. TradingView Quote runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for TradingView API access separately.

## README

### TradingView Quote API

Get a comprehensive real-time forex quote including current price, OHLC, bid/ask spread, volume, change, technical summary, key indicators, and performance metrics.

#### Request

```bash
curl -X POST "https://api.sandbase.ai/v1/run" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "tradingview/quote", "symbol": "EURUSD", "exchange": "FX"}'
```

The result is returned in `outputs[0].data`.

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `exchange` | string | No | Exchange/data source (FX, OANDA, FX_IDC) One of: `FX`, `OANDA`, `FX_IDC`. |
| `symbol` | string | No | Forex pair symbol (e.g., EURUSD, GBPUSD, USDJPY, AUDUSD, USDCAD, NZDUSD, EURGBP, EURJPY) |

#### Pricing

Flat $0.03 per call. Failed calls are not charged.
