Guide
TradeStation automated trading from alerts
TradeStation publishes an official REST API v3 with OAuth2. You request an API key with the Request API key form at developer.tradestation.com, and a TradeStation account is required. The API covers stocks, options and futures; Nyria trades stocks and options only. TradeStation also runs a SIM environment with simulated fills. Nyria is adding a TradeStation connection. It is coming soon. You can test the same alert-to-order logic for free on Nyria Paper while you wait.
Official documentation
How Nyria will connect TradeStation
- 1
Apply for an API key
Go to developer.tradestation.com and complete the Request API key form. A TradeStation account is required. TradeStation reviews each request; the timeline is not published.
- 2
Join early access in Nyria
Go to nyria.io/integrations/tradestation and add your email. Nyria will contact you when the TradeStation connection opens.
- 3
Expect the OAuth2 sign-in
TradeStation uses the OAuth2 authorization-code flow. You sign in on TradeStation's own authorize page and approve access, so the password stays with TradeStation.
- 4
Test on Nyria Paper
Run the strategy on Nyria Paper, which is free, and read the Logs tab before any live account is connected.
- 5
Deploy a live bot
When the paper log reads right, deploy a live bot on the TradeStation account. Live bots start at $15 a month, priced by total entry allocation.
What the TradeStation API covers
- US stocks and ETFs, long and short, with the account's margin and short-selling permissions.
- Options, single legs and spreads, at the account's options approval level.
- Futures, where the account is approved. Nyria trades stocks and options only.
- TradeStation's SIM environment matches the live API but places no real orders.
How OAuth2 works
- TradeStation uses the standard OAuth2 authorization-code flow. The password stays with TradeStation.
- The access token expires after 20 minutes and is renewed with a refresh token.
Questions
- Does TradeStation have a paper account?
- TradeStation calls it SIM: artificial accounts with simulated fills on the same API as live. Test on Nyria Paper while the connection is coming soon.
- When will the Nyria TradeStation connection open?
- It is coming soon. Join the early-access list at nyria.io/integrations/tradestation to be notified when it opens.
- Does TradeStation require a funded account for the API?
- TradeStation's FAQ says a TradeStation account is required. Whether the account must be funded is not stated in the official docs. Contact TradeStation directly to confirm.
- 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 Nyria Paper.
- Step by step for one account: how to automate Webhook 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 guideBrokers for automated trading: what to look for
What a broker needs for a bot, then the stock and options brokers compared on fees and paper accounts.
Read guideHow broker API trading works
What a broker API does and does not do, and the receiver that reads your alerts and places the orders for you.
Read guideWhat a Robinhood trading bot needs
What Robinhood offers, the Crypto Trading API, and how Nyria's Robinhood connection works.
Read guideE*TRADE automated trading from alerts
E*TRADE's API with OAuth 1.0a: the daily midnight expiry and how Nyria connects it, in beta.
Read guideTry a paper bot first
No card required. Paper is free. Live trading from $15 a month.