Connect TradeStation.
OptionConnect shows option prices from your own TradeStation account in Excel. TradeStation asks every client who connects an app to have a personal API key. You request it once; after that you connect with two clicks.
Your time: about 10 minutes. TradeStation's time: from a few days up to about three weeks for the key (plus the time to open and fund an account if you are not yet a TradeStation client).
What you need
- A TradeStation brokerage account. TradeStation issues API keys to accounts funded with at least USD 10,000 (TradeStation's rule, not ours). There is no extra cost for the API.
- Excel with OptionConnect installed.
Step 1: Ask TradeStation for an API key
Send this email from the email address registered on your TradeStation account (so TradeStation can match the request to your account) to [email protected]. Copy it as it is; only fill in your name and account number.
Subject: API key request for OptionConnect (Excel add-in) Hello, I am a TradeStation client (account number: [your account number]). Please issue a personal API key so that I can use the Excel add-in OptionConnect with my own account. Please set the key up as follows: 1. Authorization Code flow with PKCE (the add-in runs in Excel and has no client secret). 2. Callback URL: https://api.acpnconsulting.ch/auth/tradestation.html 3. Scopes: openid, offline_access, MarketData, OptionSpreads. Trade and ReadAccount are not needed. Please also confirm in your reply that all three points above have been applied to the key — in particular that the callback URL in point 2 is registered on it — so I know the key is ready to use. Thank you. [Your name]
Step 2: Open TradeStation's welcome letter
TradeStation replies with an email called "TradeStation API Welcome Letter" and a protected PDF. TradeStation's email explains how to open it. The PDF holds two values:
- API key (also called client ID): this is what OptionConnect needs.
- Secret: OptionConnect never uses it.
Keep both private, like a password. Store them in your password manager. Never send them to us or anyone else, and never put them in a screenshot.
Step 3: Enter the key in Excel
- Open the OptionConnect panel (Home tab, OptionConnect button).
- Under Data source, choose TradeStation (your own account).
- Paste your API key into Your TradeStation API key and click Save. The panel hides the key after saving; it is kept on your computer only.
Step 4: Connect
- Click Connect TradeStation. TradeStation's sign-in page opens in your web browser.
- Check that the address starts with signin.tradestation.com, then sign in with your TradeStation username and password.
- TradeStation shows a consent page. Its wording is TradeStation's standard text for all apps (it mentions holdings and transactions). OptionConnect only asks to read market data: it cannot trade and cannot see your balance, positions or orders. Click Accept.
- Go back to Excel. The panel finishes by itself and shows "Connected to TradeStation (read-only market data)."
That's it. The connection renews itself, also after you close Excel or restart your computer. You only sign in again if you click Disconnect, change your TradeStation password, use another computer, or Office's add-in data on your computer is cleared (for example after reinstalling Office or clearing Office's add-in cache). In those cases you also paste your API key again, so keep it in your password manager.
If something does not work
- TradeStation's sign-in shows "Something went wrong". Your key is not yet set up for PKCE or our callback URL. Reply to TradeStation's welcome email and ask them to apply points 1 to 3 from Step 1.
- "TradeStation did not allow this request". The key is missing the MarketData or OptionSpreads scope. Ask TradeStation to add both.
- "TradeStation sign-in needed" in the Status column. Open the panel and click Connect TradeStation again.
- Still stuck? Write to [email protected] with a screenshot of the panel. Do not include your API key, secret or password.
Why OptionConnect™ is safe to connect
- You sign in only on TradeStation's own page. OptionConnect never sees your password.
- OptionConnect asks only for read-only market data. It cannot place orders, and it cannot see your account data: no balance, positions, orders or transactions.
- Your connection is stored encrypted on your own computer and never in your workbook.
- Prices go straight from TradeStation to your Excel.
TradeStation is a name of its owner. OptionConnect is an independent product of ACPN Consulting GmbH and is not operated or endorsed by TradeStation.