# TradingView API

> Returns TradingView screener results, instrument profiles, quotes, technical indicators, price performance and financial statement figures.

Category: Finance & Crypto. Region: global. 7 endpoints at `https://api.hoshime.com/v1/tradingview/<endpoint>`, `GET` with query parameters, answering `{data, meta}` (see https://hoshime.com/docs/responses.md). Reference: https://hoshime.com/docs/platforms/tradingview
## GET /v1/tradingview/screener

Instruments of one TradingView market, ranked by a column (market cap by default), with optional extra columns.

Scope: `social:read` · Units: 1 · Cached: 2 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `market` | string | no | Market the ticker belongs to, such as indonesia, america or crypto. Default indonesia. (one of indonesia, america, crypto, forex, malaysia, singapore, thailand, japan, hongkong, india, uk, germany, australia, futures, cfd, bond, argentina, austria, bahrain, bangladesh, belgium, bonds, brazil, canada, chile, china, coin, colombia, cyprus, czech, denmark, economics2, egypt, estonia, finland, france, global, greece, hungary, iceland, israel, italy, kenya, korea, ksa, kuwait, latvia, lithuania, luxembourg, mexico, morocco, netherlands, newzealand, nigeria, norway, pakistan, peru, philippines, poland, portugal, qatar, romania, rsa, russia, serbia, slovakia, slovenia, spain, srilanka, sweden, switzerland, taiwan, tunisia, turkey, venezuela, vietnam; default indonesia; e.g. indonesia) |
| `query` | string | no | Filter by ticker or company name that starts with or contains the text. |
| `columns` | string | no | Comma-separated extra scanner columns to return, up to 20, such as RSI or Perf.1M. Omit for the standard set. |
| `sortBy` | string | no | Scanner column to sort on. Default market_cap_basic. (default market_cap_basic) |
| `sortOrder` | string | no | Sort direction: desc or asc. (one of desc, asc; default desc) |
| `limit` | integer | no | Items per page, 1 to 1000. (default 50; e.g. 5) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `change` (string), `changePercent` (string), `currency` (string), `description` (string), `exchange` (string), `high` (string), `low` (string), `marketCap` (string), `name` (string), `open` (string), `price` (string), `priceEarnings` (number (double)), `sector` (string), `symbol` (string), `type` (string), `updatedAt` (string), `values` (map), `volume` (string)

```bash
curl "https://api.hoshime.com/v1/tradingview/screener?market=indonesia&limit=5" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/tradingview/symbol

The profile of one TradingView instrument: full symbol, name, exchange, type, currency, sector and market cap.

Scope: `social:read` · Units: 1 · Cached: 60 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `symbol` | string | yes | Ticker, with or without its exchange prefix (IDX:BBCA or BBCA). (e.g. IDX:BBCA) |
| `market` | string | no | Market the ticker belongs to, such as indonesia, america or crypto. Default indonesia. (one of indonesia, america, crypto, forex, malaysia, singapore, thailand, japan, hongkong, india, uk, germany, australia, futures, cfd, bond, argentina, austria, bahrain, bangladesh, belgium, bonds, brazil, canada, chile, china, coin, colombia, cyprus, czech, denmark, economics2, egypt, estonia, finland, france, global, greece, hungary, iceland, israel, italy, kenya, korea, ksa, kuwait, latvia, lithuania, luxembourg, mexico, morocco, netherlands, newzealand, nigeria, norway, pakistan, peru, philippines, poland, portugal, qatar, romania, rsa, russia, serbia, slovakia, slovenia, spain, srilanka, sweden, switzerland, taiwan, tunisia, turkey, venezuela, vietnam; default indonesia) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `currency` (string), `description` (string), `exchange` (string), `industry` (string), `marketCap` (string), `name` (string), `sector` (string), `symbol` (string), `ticker` (string), `type` (string)

```bash
curl "https://api.hoshime.com/v1/tradingview/symbol?symbol=IDX%3ABBCA" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/tradingview/quote

The current quote of one TradingView instrument: last price, day range, volume and fundamentals. Scope full adds technical and financial figures.

Scope: `social:read` · Units: 1 · Cached: 1 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `symbol` | string | yes | Ticker, with or without its exchange prefix (NASDAQ:AAPL or AAPL). (e.g. IDX:BBCA) |
| `market` | string | no | Market the ticker belongs to, such as indonesia, america or crypto. Default indonesia. (one of indonesia, america, crypto, forex, malaysia, singapore, thailand, japan, hongkong, india, uk, germany, australia, futures, cfd, bond, argentina, austria, bahrain, bangladesh, belgium, bonds, brazil, canada, chile, china, coin, colombia, cyprus, czech, denmark, economics2, egypt, estonia, finland, france, global, greece, hungary, iceland, israel, italy, kenya, korea, ksa, kuwait, latvia, lithuania, luxembourg, mexico, morocco, netherlands, newzealand, nigeria, norway, pakistan, peru, philippines, poland, portugal, qatar, romania, rsa, russia, serbia, slovakia, slovenia, spain, srilanka, sweden, switzerland, taiwan, tunisia, turkey, venezuela, vietnam; default indonesia) |
| `scope` | string | no | core: the quote, fundamentals and profile. full adds the recommendation, RSI, performance, revenue, income and balance figures. (one of core, full; default core) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `averageVolume10d` (string), `beta` (number (double)), `change` (string), `changePercent` (string), `currency` (string), `description` (string), `dividendYield` (number (double)), `eps` (string), `exchange` (string), `floatShares` (string), `high` (string), `industry` (string), `low` (string), `marketCap` (string), `name` (string), `open` (string), `price` (string), `priceEarnings` (number (double)), `priceToBook` (number (double)), `sector` (string), `symbol` (string), `type` (string), `updatedAt` (string), `values` (map), `volume` (string)

```bash
curl "https://api.hoshime.com/v1/tradingview/quote?symbol=IDX%3ABBCA" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/tradingview/technicals

Technical indicators of one TradingView instrument on a timeframe: oscillators, moving averages, Bollinger bands and the buy-sell recommendation.

Scope: `social:read` · Units: 1 · Cached: 5 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `symbol` | string | yes | Ticker, with or without its exchange prefix (IDX:BBCA or BBCA). (e.g. IDX:BBCA) |
| `market` | string | no | Market the ticker belongs to, such as indonesia, america or crypto. Default indonesia. (one of indonesia, america, crypto, forex, malaysia, singapore, thailand, japan, hongkong, india, uk, germany, australia, futures, cfd, bond, argentina, austria, bahrain, bangladesh, belgium, bonds, brazil, canada, chile, china, coin, colombia, cyprus, czech, denmark, economics2, egypt, estonia, finland, france, global, greece, hungary, iceland, israel, italy, kenya, korea, ksa, kuwait, latvia, lithuania, luxembourg, mexico, morocco, netherlands, newzealand, nigeria, norway, pakistan, peru, philippines, poland, portugal, qatar, romania, rsa, russia, serbia, slovakia, slovenia, spain, srilanka, sweden, switzerland, taiwan, tunisia, turkey, venezuela, vietnam; default indonesia) |
| `timeframe` | string | no | Timeframe the indicators are computed on. Default 1d. (one of 1m, 5m, 15m, 30m, 1h, 2h, 4h, 1d, 1w, 1M; default 1d) |
| `columns` | string | no | Comma-separated extra indicators, up to 20, such as Stoch.D or Candle.Doji. Omit for the standard set. |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `adx` (number (double)), `ao` (number (double)), `bollingerLower` (number (double)), `bollingerUpper` (number (double)), `cci20` (number (double)), `close` (string), `ema20` (number (double)), `ema200` (number (double)), `ema50` (number (double)), `macd` (number (double)), `macdSignal` (number (double)), `momentum` (number (double)), `recommendAll` (number (double)), `recommendMa` (number (double)), `recommendOther` (number (double)), `rsi` (number (double)), `sma20` (number (double)), `sma200` (number (double)), `sma50` (number (double)), `stochastic` (number (double)), `symbol` (string), `timeframe` (string), `values` (map)

```bash
curl "https://api.hoshime.com/v1/tradingview/technicals?symbol=IDX%3ABBCA" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/tradingview/performance

Price change of one TradingView instrument over a week, a month, three and six months, the year so far, a year, five years and all time, in percent.

Scope: `social:read` · Units: 1 · Cached: 5 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `symbol` | string | yes | Ticker, with or without its exchange prefix (IDX:BBCA or BBCA). (e.g. IDX:BBCA) |
| `market` | string | no | Market the ticker belongs to, such as indonesia, america or crypto. Default indonesia. (one of indonesia, america, crypto, forex, malaysia, singapore, thailand, japan, hongkong, india, uk, germany, australia, futures, cfd, bond, argentina, austria, bahrain, bangladesh, belgium, bonds, brazil, canada, chile, china, coin, colombia, cyprus, czech, denmark, economics2, egypt, estonia, finland, france, global, greece, hungary, iceland, israel, italy, kenya, korea, ksa, kuwait, latvia, lithuania, luxembourg, mexico, morocco, netherlands, newzealand, nigeria, norway, pakistan, peru, philippines, poland, portugal, qatar, romania, rsa, russia, serbia, slovakia, slovenia, spain, srilanka, sweden, switzerland, taiwan, tunisia, turkey, venezuela, vietnam; default indonesia) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `allTime` (number (double)), `fiveYears` (number (double)), `month` (number (double)), `sixMonths` (number (double)), `symbol` (string), `threeMonths` (number (double)), `week` (number (double)), `year` (number (double)), `yearToDate` (number (double))

```bash
curl "https://api.hoshime.com/v1/tradingview/performance?symbol=IDX%3ABBCA" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/tradingview/financials

Income, balance sheet and cash flow figures of one TradingView instrument for a reporting period: quarter, annual or trailing twelve months.

Scope: `social:read` · Units: 1 · Cached: 60 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `symbol` | string | yes | Ticker, with or without its exchange prefix (IDX:BBCA or BBCA). (e.g. IDX:BBCA) |
| `market` | string | no | Market the ticker belongs to, such as indonesia, america or crypto. Default indonesia. (one of indonesia, america, crypto, forex, malaysia, singapore, thailand, japan, hongkong, india, uk, germany, australia, futures, cfd, bond, argentina, austria, bahrain, bangladesh, belgium, bonds, brazil, canada, chile, china, coin, colombia, cyprus, czech, denmark, economics2, egypt, estonia, finland, france, global, greece, hungary, iceland, israel, italy, kenya, korea, ksa, kuwait, latvia, lithuania, luxembourg, mexico, morocco, netherlands, newzealand, nigeria, norway, pakistan, peru, philippines, poland, portugal, qatar, romania, rsa, russia, serbia, slovakia, slovenia, spain, srilanka, sweden, switzerland, taiwan, tunisia, turkey, venezuela, vietnam; default indonesia) |
| `period` | string | no | Reporting period: quarter, annual or ttm (trailing twelve months). Default quarter. (one of quarter, annual, ttm; default quarter; e.g. annual) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `cash` (string), `ebitda` (string), `eps` (string), `freeCashFlow` (string), `grossProfit` (string), `netIncome` (string), `operatingCashFlow` (string), `operatingIncome` (string), `period` (string), `revenue` (string), `symbol` (string), `totalAssets` (string), `totalDebt` (string)

```bash
curl "https://api.hoshime.com/v1/tradingview/financials?symbol=IDX%3ABBCA&period=annual" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/tradingview/markets

The markets the TradingView scanner serves, with the ids the other endpoints take as market.

Scope: `social:read` · Units: 1 · Cached: 1440 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | no | Filter markets by id, case-insensitive. |
| `scope` | string | no | default lists the 16 headline markets; all lists every market the scanner serves. (one of default, all; default default) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `headline` (boolean), `id` (string)

```bash
curl "https://api.hoshime.com/v1/tradingview/markets" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
