Skip to content

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. 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. 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. 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. 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. 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

Try a paper bot first

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