All guides

How to connect your own market-data key (OANDA, Alpaca and more)

Bring your own free key from OANDA, Twelve Data, Alpaca, Massive (Polygon.io), Tiingo or Alpha Vantage to backtest more markets. Keys are stored encrypted.

Available on: Essential and PRO

Steps

  1. Open Backtesting and click Data connections.

  2. Under Add a data provider, find the provider's card.

  3. Click Get a free key to open the provider's sign-up page and create your key.

  4. Click Connect on the provider's card.

  5. Paste the key. OANDA also asks for the account type, and Alpaca asks for a Key ID and a Secret key.

  6. Click Test & save.

  7. Open Backtesting, click + New backtest and choose the provider under “With your own key” as Data source.

  8. Type the symbol in the format shown under Symbol, for example EUR_USD on OANDA.

Tips

  • OANDA: open a free practice account, generate a personal token in Manage API Access and choose Practice. Alpaca: use a Paper account and Generate New Keys.
  • Free keys have limits, such as Alpha Vantage's 25 requests per day and daily candles only. If you hit one, wait and try again.
  • Disconnect removes the key and the candles downloaded with it. Replace key swaps it for a new one.

Related guides

Still stuck?

Tell us what you were trying to do and what happened. A person replies by email, usually within one business day.

Include the platform or exchange and any error message you saw. Never send passwords or API secrets.

Screenshots or a screen recording (optional)

Up to 3 files: images up to 8 MB (PNG, JPG, WebP, GIF, HEIC), videos up to 25 MB (MP4, MOV, WebM). Hide balances or keys you don't want to share.