Skip to the content

Help / Your account

Your account and data

Open the Account page from your account menu (the round initial at the top right of the chart) › Account and API keys.

SectionWhat it’s for
ProfileYour name and email
PlanYour plan, its limits and how much you’ve used
AssistantYour own AI model, and services connected to the assistant
Password, Two-factor sign-in, Signed in onKeeping your account safe
Stock data (Alpaca)Your keys for US stock and ETF data
Forex data (OANDA)Your token for live forex and metals
Earnings data (Finnhub)Your key for upcoming earnings dates and estimates
API keys, Key activityKeys for scripts and AI apps, and what they changed
Your dataDownloading everything, or deleting your account

Stock data: connecting Alpaca#

The full step-by-step guide, with what to do when it doesn’t work.

US stocks and ETFs come through your own Alpaca account, which is free. Your keys are only used to fetch your charts.

  1. Make a free account at alpaca.markets. A paper trading account is enough; no money or funding is needed.
  2. In Alpaca’s dashboard, generate API keys and copy the Key ID and Secret key.
  3. On the Account page, under Stock data (Alpaca), paste both, choose Paper account or Live account to match the keys, and press Save keys.
  4. Open a stock’s chart. The section shows whether your data is IEX or SIP.
Note:Alpaca’s free data is from one exchange (IEX), so volumes look smaller than the whole market’s. A paid Alpaca data plan gives every exchange (SIP). Keys are stored encrypted and never sent back to your browser. Remove deletes them.

Live forex: connecting OANDA#

The full step-by-step guide, with what to do when it doesn’t work.

Live forex and metals come through your own OANDA account. A practice (demo) account is free and enough: no money or funding is needed. Your token is only used to fetch your charts, alerts and paper trades, and nothing places real orders.

  1. Open a free practice account at oanda.com (in many countries OANDA calls it a demo account).
  2. Signed in to OANDA, go to My Account › Manage API Access and press Generate. Copy the token.
  3. On the Account page, under Forex data (OANDA), paste it, choose Practice account or Live account to match, and press Save token. OANDA is asked which account it opens.
  4. Search for a pair (EURUSD, EUR/USD or gold). Results marked your OANDA data are live.
Note:OANDA sends prices, not trades, so a bar’s volume is the number of price changes in it (tick volume), as on OANDA’s own charts. Its prices are OANDA’s quotes and differ slightly from the Dukascopy history, which stays available as separate symbols. The token is stored encrypted; Remove deletes it.

Earnings dates: connecting Finnhub#

The full step-by-step guide, with what to do when it doesn’t work.

Past results are marked from each company’s SEC filings without any key. For the next report’s date, analysts’ estimates and how the last four quarters beat or missed them, add your own free Finnhub key.

  1. Sign up for free at finnhub.io. Your API key is on the dashboard.
  2. On the Account page, under Earnings data (Finnhub), paste it and press Save key. Finnhub is asked whether it works first.
  3. Open a US stock. The Financials tab shows the next report and the last four quarters, and with Chart settings › Events on, past E markers say how EPS compared with the estimate (E +4.2%) and the next report is marked ahead of the newest bar.
Note:Finnhub’s EPS is adjusted (non-GAAP), the figure analysts estimate, so it can differ from the filings’ EPS. The free plan allows 60 requests a minute; each stock is read at most a few times a day. The key is stored encrypted; Remove deletes it.

Economic figures: connecting FRED#

The full step-by-step guide, with what to do when it doesn’t work.

The economic calendar’s release dates and BLS figures need no key. For the Fed funds rate, the 10-year yield, GDP, PCE inflation, retail sales and jobless claims, and their release dates, and for request.economic in your scripts and alerts, add your own free FRED key from the Federal Reserve Bank of St. Louis.

  1. Sign up for free at fred.stlouisfed.org, then open My Account › API Keys and request a key (32 letters and digits).
  2. On the Account page, under Economic data (FRED), paste it and press Save key. FRED is asked whether it works first.
  3. Open the economic calendar: the latest figures now include FRED’s, and its releases are on the calendar. Scripts using request.economic draw their figures on the chart and in alerts.
Note:The figures are public, so once anyone’s key has read them they’re shared for a few hours; your key is only used for you and your alerts. It is stored encrypted; Remove deletes it.

Language and look#

Choose English or Spanish in Chart settings (the gear) › Look › Language, along with the theme (dark, light or your system’s). Your choice follows your account. Some parts of the app are still English only.

Downloading your data#

  • Everything about you: Your data › Download my data gives one JSON file with your profile, everything you’ve made (settings, layouts, scripts, alerts, paper trades and the rest) and your API keys’ names (never the keys).
  • A chart’s bars: in the command palette (Ctrl+K), Export chart data (CSV) or Download bars (Parquet).
  • Alerts that fired: Export CSV in the Alerts tab’s log.
  • Screener results: Export CSV in the Screener.
  • A watchlist: Export list in its menu.
  • From code: see bulk downloads.

Deleting your account#

  1. Consider downloading your data first: deleting can’t be undone.
  2. Under Your data, enter your password and press Delete my account.

Your account and everything in it is removed: settings, scripts, alerts, paper account and keys. Scripts you published to the Community are removed too.

TradingView and Pine Script are trademarks of TradingView, Inc. OpenTapefolio is not affiliated with or endorsed by TradingView.