Guide
E*TRADE automated trading from alerts
E*TRADE publishes a REST API that places orders in your account through OAuth 1.0a. Each person requests their own production key after the API Developer Agreement and the User Intent Survey. The API trades stocks and options. Access ends at the end of each day, US Eastern, so you sign in again daily. Nyria connects E*TRADE in beta. Test the same alert-to-order logic free on Nyria Paper first.
Official documentation
How Nyria connects E*TRADE
- 1
Apply for a sandbox key
Request a sandbox key at developer.etrade.com. A US E*TRADE brokerage account is required, and a key takes a few business days.
- 2
Test in the E*TRADE sandbox
The sandbox at apisb.etrade.com is for checking requests and responses before you ask for a production key. It places no real orders.
- 3
Request a production key
Once sandbox testing passes, request a production key on developer.etrade.com. E*TRADE reviews the request; the timeline is not published.
- 4
Connect E*TRADE in Nyria
Open the E*TRADE card on Integrations and paste the consumer key and consumer secret. Nyria opens E*TRADE's sign-in in a new tab. Log in, accept access and paste the verification code.
- 5
Plan for daily re-consent
The E*TRADE access token expires at midnight Eastern Time every day. Trading pauses until you complete the OAuth flow again.
What the E*TRADE API covers
- US stocks and ETFs, as the account's permissions allow.
- Options, single legs and spreads, at the account's options approval level.
The daily midnight expiry rule
- Every E*TRADE access token expires at midnight US Eastern Time, with no exception.
- The only way to renew is a fresh OAuth flow where the user logs in and clicks consent.
- E*TRADE offers no way to renew a token across midnight. A fresh sign-in is required once per ET day.
- An idle token also inactivates after two hours of no API calls. A renew call keeps it active through the trading day.
Questions
- Why does the E*TRADE token expire at midnight?
- E*TRADE's API requires a new authorize step each calendar day. This is a hard rule of the E*TRADE OAuth 1.0a flow and cannot be changed by Nyria.
- Can Nyria trade my E*TRADE account?
- Yes, in beta. Connect your own consumer key, then sign in at E*TRADE and enter a new code each day so bots can trade.
- Does E*TRADE have a sandbox?
- Yes, at apisb.etrade.com. Use it to check requests and responses before a production key. It places no real orders.
- 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
Brokers 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 guideBroker sandbox vs paper trading
What Nyria Paper, Tradier's sandbox and Alpaca paper each prove.
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 guideWebull trading bot with OpenAPI
Webull's OpenAPI with your own App Key: how it works and how Nyria connects it, in beta.
Read guideTradeStation automated trading from alerts
An official REST API with OAuth2 and a SIM environment: how it connects and when it opens in Nyria.
Read guideTry a paper bot first
No card required. Paper is free. Live trading from $15 a month.