# Tradingview — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Monitor live forex pair prices and technical indicators from TradingView, including real-time OHLC data, bid/ask spreads, moving averages, and pivot points. Analyze performance metrics and scan multiple currency pairs to make informed trading decisions.

**Category:** Finance & Markets | **Website:** [www.tradingview.com/symbols/EURUSD/](https://www.tradingview.com/symbols/EURUSD/) | **Docs:** [parse.bot/marketplace/c8132084-b1a7-4579-9a35-d87fe6850854/tradingview-com-api](https://parse.bot/marketplace/c8132084-b1a7-4579-9a35-d87fe6850854/tradingview-com-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-tradingview-com-api-c8132084/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_chart

Get recent OHLC bar data for a forex pair at the specified interval. Returns the most recent available bars (typically 2-5 depending on market session and day of week). For non-daily intervals, includes the current bar at the requested resolution plus recent daily bars. Bars are sorted by timestamp ascending (oldest first). The upstream data source provides a limited lookback window; bars_count is an upper bound and fewer bars may be returned.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `bars` | integer | No | Maximum number of bars to return (1-30). Fewer bars may be returned depending on available data. |
| `exchange` | string | No | Exchange/data source (FX, OANDA, FX_IDC) |
| `interval` | string | No | Bar interval/timeframe |
| `symbol` | string | No | Forex pair symbol (e.g., EURUSD, GBPUSD, USDJPY, AUDUSD, USDCAD, NZDUSD, EURGBP, EURJPY) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-tradingview-com-api-c8132084/get_chart \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"bars":"<integer>","exchange":"<string>","interval":"<string>","symbol":"<string>"}'
```

### get_quote

Get a comprehensive real-time forex quote including current price, OHLC, bid/ask spread, volume, change, technical summary, key indicators, and performance metrics. Returns a single Quote resource for the specified forex pair. The technicals_summary provides a quick Buy/Sell/Neutral signal; use get_technicals for a full breakdown.

**Estimated cost:** Metered

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

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-tradingview-com-api-c8132084/get_quote \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"exchange":"<string>","symbol":"<string>"}'
```

### get_technicals

Get detailed technical analysis for a forex pair including all oscillators (RSI, MACD, CCI, ADX, Stochastic, etc.), moving averages (EMA/SMA at 10/20/30/50/100/200 periods), and pivot points (Classic and Fibonacci). Use this for a full technical breakdown; use get_quote for a quick summary.

**Estimated cost:** Metered

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

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-tradingview-com-api-c8132084/get_technicals \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"exchange":"<string>","symbol":"<string>"}'
```

### scan_forex

Scan multiple forex pairs at once, returning price, change, bid/ask, volume, and key technical indicators for each pair. Useful for building a watchlist or screening for trading signals across the forex market. Each pair includes a Buy/Sell/Neutral recommendation and RSI.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `exchange` | string | No | Exchange/data source for all symbols (FX, OANDA, FX_IDC) |
| `symbols` | string | No | Comma-separated list of forex pair symbols (e.g., EURUSD,GBPUSD,USDJPY) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-tradingview-com-api-c8132084/scan_forex \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"exchange":"<string>","symbols":"<string>"}'
```
