Guide
How broker API trading works
Broker API trading means a program places orders in your brokerage account through an interface the broker publishes, instead of you typing them. Many brokers publish one, including Charles Schwab, Alpaca, tastytrade and Tradier. The API takes orders, but it does not decide when to send them: something still has to read your alerts and place the orders. Nyria is that part for Charles Schwab, Alpaca, tastytrade and Tradier, with no code to write.
Official documentation
How to start
- 1
Pick a broker with an API
Charles Schwab, Alpaca, tastytrade and Tradier each publish one. Robinhood's own agent access is in beta. Nyria connects Robinhood with your Robinhood login, an unofficial connection in beta.
- 2
Decide where the alerts come from
A TradingView chart, a TrendSpider alert, a Discord server or Telegram chat you run, an AI agent over MCP, or a script of your own that calls a webhook URL.
- 3
Choose the receiver
Write a program that reads each alert, sizes it and calls the broker's order endpoint, or use one that already holds the broker connection. With Nyria, Schwab, tastytrade and Tradier connect through the broker's own sign-in page and Alpaca with an API key.
- 4
Test on paper
Run the same alerts on Nyria Paper, which is free, and read the Logs tab against the alerts that caused each order.
- 5
Go live small, check fills
Deploy a bot on the broker account with a small Budget per entry, and compare every fill with the broker's own order history.
What a broker API gives you
- It places and cancels orders in your account, and reads positions and balances, once you have authorized access.
- Authorization differs by broker: a sign-in page at Schwab, tastytrade and Tradier, an API key at Alpaca.
- Some brokers also publish a sandbox or paper account that works through the same API.
What it does not give you
- Something to read your alerts. The API waits for an order that something else decides to send.
- Sizing. Nyria sizes every order from the Budget per entry on the bot, and an alert cannot set it.
- Upkeep. Tokens expire, and Schwab ends Nyria's access every 7 days, so you sign in again each week.
Questions
- Do I need to code to trade through a broker API?
- Only if you write the receiver yourself. Nyria is a receiver that already holds the connection to Charles Schwab, Alpaca, tastytrade and Tradier, so a TradingView, Discord, Telegram or AI agent alert needs no code.
- Does Robinhood have a trading API?
- Yes. Its Crypto Trading API serves US crypto customers, and Agentic Trading, a beta for AI agents, launched in May 2026. Nyria connects Robinhood stocks and options with your Robinhood login, an unofficial connection in beta, and Robinhood Crypto through the Crypto Trading API, in beta.
- Can a broker API move my money?
- The access Nyria receives places and cancels orders and cannot move money out of the account.
- What does it cost?
- Paper is free. Live trading from $15 a month.
Next
- Paste an alert into the alert tester to see how Nyria reads it.
- Step by step for one account: how to automate TradingView to Alpaca.
- Step by step for one account: how to automate Webhook to Charles Schwab.
- Step by step for one account: how to automate TradingView to Nyria Paper.
Guides
How to set up automated trading
An alert, a receiver and a broker with an API, set up in order and tested on paper.
Read guideHow algo trading executes trades
Alert, webhook message, receiver, broker API and fill tracking, and what breaks in practice.
Read guideWhich brokers TradingView alerts can trade
What each live broker trades and how it signs in.
Read guideWhy did my broker reject an automated order?
The broker's reason, and the fix for each common rejection.
Read guideHow do I send trade alerts from my own code with a REST API?
POST /v1/alerts with a Bearer token. The reply carries an order_id you can poll.
Read guideTry a paper bot first
No card required. Paper is free. Live trading from $15 a month.