Start here
Connect your broker
During the beta, ThetaWiz connects through your own API app at your broker. You create it once, paste its keys into ThetaWiz, and your positions and quotes come straight from your broker to your computer. ThetaWiz works out any Greeks your broker doesn't send.
Before you start
- Install ThetaWiz and sign in with your ThetaWiz account.
- In the app, open Settings → Connections and choose “+ TastyTrade” or “+ Charles Schwab”.
tastytrade
Create a personal OAuth app with read-only access, then paste three values into ThetaWiz. About 5 minutes. No approval wait. Start at my.tastytrade.com.
1. Open OAuth Applications. Sign in at my.tastytrade.com and go to Manage → My Profile → API → OAuth Applications.
2. Create a new OAuth client. Click “+ New OAuth client” and name it, for example “ThetaWiz”. Under scopes, select read only. ThetaWiz never trades, so it doesn't need trade access. If the form asks for a redirect URI, enter the value below; ThetaWiz doesn't use it.
http://localhost
3. Copy the Client ID and Client Secret. Save both somewhere safe now. Treat the secret like a password.
4. Create a grant. On the same OAuth client, click “Create Grant”. Copy the refresh token it shows.
5. Connect in ThetaWiz. In Settings → Connections, choose “+ TastyTrade”. Paste the Client ID, Client Secret and Refresh Token, optionally name the connection, and click Connect. You'll see “Successfully connected! Found N account(s).”
- The refresh token keeps working until you delete the grant at tastytrade, so you won't need to reconnect.
- If the login holds more than one account, ThetaWiz asks which ones to sync before the first sync: tick the accounts you want and click Continue. Unticked accounts stay off; you can switch them on later in Settings → Connections.
- To disconnect, remove the connection in ThetaWiz and delete the grant in OAuth Applications.
- ThetaWiz connects with these keys only; tastytrade username and password sign-in isn't supported.
Charles Schwab
Register an app at Schwab's developer portal, wait for Schwab to approve it, then approve ThetaWiz in your browser. About 10 minutes, plus Schwab's review of your app (usually a few business days). Start at developer.schwab.com.
1. Create a developer account. Sign up at developer.schwab.com. This is separate from your Schwab brokerage login; you'll link your brokerage account when you approve ThetaWiz later.
2. Register an app. Create a new app for individual use and add the “Accounts and Trading Production” and “Market Data Production” APIs. Set the callback URL to exactly the value below — https, 127.0.0.1 (not “localhost”), port 8182, path /callback.
https://127.0.0.1:8182/callback
3. Wait for approval. Schwab reviews new apps before they work. When the app's status shows “Ready For Use”, open it and copy the App Key and Secret.
4. Connect in ThetaWiz. In Settings → Connections, choose “+ Charles Schwab”. Paste the App Key and App Secret. Leave the Callback URL as it is unless you registered a different one, then click Connect.
5. Approve in your browser. Your browser opens Schwab's login. Sign in, select the accounts to share and allow access. Your browser will then warn that the connection to 127.0.0.1 isn't private: that page is ThetaWiz running on your own computer, so choose Advanced → Proceed. When you see “Login successful. You can close this tab.”, you're done. Finish within 5 minutes or the app stops waiting.
- If the login holds more than one account, ThetaWiz asks which ones to sync before the first sync: tick the accounts you want and click Continue. Unticked accounts stay off; you can switch them on later in Settings → Connections.
- Schwab requires you to approve access again about every 7 days. ThetaWiz warns you two days before; open Settings → Connections and click Re-consent. It takes a minute.
- Schwab's API has no read-only option for account access. ThetaWiz still never places, changes or cancels orders.
- Copy the callback URL exactly. If it differs by even one character from the one you registered, Schwab rejects the login.
Where your keys go
Your client secret and tokens are stored in your computer's keychain (or an encrypted local file if no keychain is available). They are never sent to ThetaWiz. Our servers keep only the broker name, the client ID / app key and the connection name, so your connections show up on every computer you sign in on. ThetaWiz is read-only: it never places, changes or cancels orders. See Security for everything we store.
Connection errors
| Message in the app | What to do |
|---|---|
| Subscribe to connect a brokerage | Connecting needs an active subscription or trial. Check your plan under Settings → Profile. If you already have access, sign out of the app and sign in again to refresh it; if the message stays, email support. |
| The client ID or secret is incorrect. Please check your OAuth credentials. | tastytrade: copy both again from OAuth Applications, without spaces at the start or end. |
| The refresh token is invalid or expired. Please generate a new one. | tastytrade: click “Create Grant” again and paste the new refresh token. |
| Schwab rejected the callback URL. It must match the URL registered on developer.schwab.com exactly. | Make the callback URL in your Schwab app and in ThetaWiz identical: https://127.0.0.1:8182/callback. |
| Schwab rejected the app key or secret. Check both on developer.schwab.com. | Check the app shows “Ready For Use”, then copy the App Key and Secret again. |
| Schwab did not call back in time. Re-open the dialog and finish the browser login within 5 minutes. | Click Connect again and complete the Schwab login, including the 127.0.0.1 browser warning, within 5 minutes. |
| Schwab access expired — re-consent to restore Schwab data | Open Settings → Connections and click Re-consent on the Schwab connection. |
| Unable to access secure storage. Please check system keyring. | Unlock your computer's keychain (on Linux, make sure a Secret Service such as GNOME Keyring or KWallet is running) and try again. |