Skip to content

Guide

Schwab API TradingView setup

A TradingView alert cannot call the Schwab API. It can send a webhook, so something has to receive that webhook and place the order through Schwab's Trader API. You can build that receiver yourself on developer.schwab.com, or point the alert at Nyria, which holds the Schwab connection through Schwab's own sign-in with no developer account and no API key. Charles Schwab is live on Nyria today. Test the alert free on Nyria Paper first.

Official documentation

Connect TradingView to Schwab with Nyria

  1. 1

    Connect Schwab

    In Nyria, select Integrations in the left sidebar, then the Charles Schwab card. Select Connect live account, sign in at schwab.com and select Allow on the Authorize App screen. No developer account or API key is needed.

  2. 2

    Create a strategy

    Select Create strategy and pick TradingView as the alert source. Choose stocks or options as the asset type, and set what an entry and an exit do on each side.

  3. 3

    Create the alert in TradingView

    Open the alert dialog and set the Condition to your strategy or indicator. Open Message, paste the message from the strategy's Integration tab and select Apply. Open Notifications, tick Webhook URL, paste the strategy's URL and select Apply, then Create. TradingView sends webhooks on its paid plans only, with two-factor sign-in on.

  4. 4

    Check the format

    Back in Nyria, select Check format, then Check and save. The strategy turns Active once Nyria reads every side, and the Logs tab shows the ticker, side and contract it read.

  5. 5

    Run it on Nyria Paper

    Deploy a bot on Nyria Paper, set a Budget per entry and let the alert fire for a few sessions. Check the Logs tab.

  6. 6

    Deploy a bot on Schwab

    Deploy a second bot and pick the Schwab account on the Account step. The next alert becomes an order in your own Schwab account.

Watch the setup

How to automate TradingView alerts to Charles Schwab
Connect Charles Schwab and build a TradingView strategy. Check the alert format, deploy a bot. It runs on Nyria Paper first.
Steps in the video
  1. 0:00Connect Charles Schwab. Open Integrations and the Charles Schwab card. Select Connect live account and sign in at Schwab. Schwab asks you to sign in again every 7 days.
  2. 0:18Create a strategy. Select Create strategy and name it. Then, select your alert source. This example uses TradingView. Pick stocks and a ticker, then create the draft.
  3. 0:46Create the alert in TradingView. Copy the webhook URL and the alert message from the Integration tab. In TradingView, select Message, paste the message and select Apply. Then select Notifications, tick Webhook URL, paste the URL and select Apply.
  4. 2:27Check the format. Select Check format and add an entry and an exit alert. Nyria shows the ticker, side and order it read.
  5. 2:46Deploy a bot. Select Deploy bot, set a budget per entry and pick an account. Nyria Paper is free, so test there first. On your own Schwab account, pick it on the Account step. Send a sample alert and watch the paper order fill.

What Nyria trades at Schwab

  • Stocks and options up to 4 legs, as market and limit orders.
  • SPX trades on the PM-settled SPXW chain, 0DTE included. Nyria can't trade crypto or futures at Schwab.
  • An alert cannot set the size. The bot sizes each order from its Budget per entry.
  • Schwab ends Nyria's access every 7 days. Select Reconnect live account and sign in again.

Four brokers compared

FeatureSchwabAlpacatastytradeTradier
Stocks and ETFsYesYesYesYes
Options, up to 4 legsYesYesYesYes
Order typesMarket and limitMarket and limitMarket and limitMarket and limit
Paper account on NyriaNyria Paper onlyAlpaca paper keys, separate from liveNyria Paper onlyTradier Sandbox
How it connectsSchwab sign-in, renewed every 7 daysAPI key and secrettastytrade sign-inTradier sign-in

Two routes compared

SettingBuild it yourselfUse Nyria
Schwab developer accountYes. Schwab approves the app, then gives you a key and a secret.No
Code to writeA receiver on port 80 or 443 that answers TradingView within three seconds. It also sizes the order and checks the fill.None
Runs onA server of yours that stays on. A bug places real orders.Nyria
Sign-in every 7 daysYes. The refresh token ends after 7 days.Yes. Select Reconnect live account.
Test before liveYou build itNyria Paper, free

Questions

Does TradingView connect to the Schwab API on its own?
A TradingView alert sends a webhook, not an order. It never calls the Schwab API itself, so a receiver has to place the order.
Do I need a Schwab developer account for Nyria?
No. You sign in at Schwab as usual and grant Nyria access on Schwab's own authorization screen.
Can I test before trading real money at Schwab?
Nyria connects live Schwab accounts only, so run the same strategy on free Nyria Paper first.
Do I need a paid TradingView plan?
Yes. TradingView sends webhook alerts on its paid plans only, with two-factor sign-in on.
What does it cost?
Paper is free. Live trading from $15 a month.

Next

Try a paper bot first

No card required. Paper is free. Live trading from $15 a month.