Auto import trades from Charles Schwab

By TradesViz in Auto Import Trades

In this post, we will explore how to pair your TradesViz account with a Charles Schwab trading account.

This post assumes that you have read the basics about auto importing in TradesViz.


NOTE: This module is under public beta testing. No guarantees are provided. Please use a separate trading account to link and sync your trades.


Once you select your trading account and broker as "Schwab" in the trade auto-import page, a popup box will appear when you click on the "Connect account" button.

The purpose of this blog post is to guide you to get this ID from the Schwab website. Here are the steps you need to follow:

  1. Click on the link in the instructions in the popup box shown in the picture above.
  2. This will redirect you to a secure Schwab webpage where you need to enter your credentials to authenticate that you are the user of Schwab to link. Note that we have no access to any information in the subsequent pages after you click on the link in the instructions - all actions are done via Schwab's secure pages. You can check the URL in the browser to verify this.

  3. Fill in your information, follow the security checkups (one-time-password authentication), and finally, you will arrive at a window that asks for your confirmation on whether you give us read-only access to your account's orders and executions.
  4. Click on Allow/Confirm" and you will now be redirected to a page where you will have to copy a code and paste it in the popup box shown as the first image in this blog post.
  5. Once you return to the's import page, click on the "Auto-import trades" tab, follow the same instructions of selecting the trading account and brokerage platform (Schwab), and now paste the code in the text field.



  • Account ID is the account number (not your Schwab username) and it does NOT have any special characters (if your account number is 1234-5678, then enter 1235678)
  • DO NOT RE-USE THE API CODE! If the API connection fails or if you are not able to sync, it's MOST probably because you are using an incorrect account ID or you re-used your API code when setting up the connection.
  • Copy the API code from the final TradesViz paste it in the connection box and click submit within 30 secs! (that's the expiry time for API code).
  • Not every account type that has been migrated will be supported by the Trader API to start. Only accounts that are optimized for the thinkorswim experience at Schwab will be able to be seen by the Trader API.
  • The API connection validity is 7 days - this is set by Schwab and we cannot extend or override this.

Finally, click "Connect" and in a few seconds, you should receive a connection successful message which means the linking was successful. If not, please contact us at [email protected].

Note that this access read-only to the information shown in step 3. We have no control over your account and cannot access ANY information other than what is given to us by Schwab.