Skip to content

Onboarding mode ​

Start each user with the Trade It Portal in Onboarding mode. It explains your app’s access, handles sign-in, and connects their first brokerage without leaving your app.

After saving their tokens, use the same portal in Connection mode to add or reconnect brokerages.

Your app’s access, security, privacy, and Continue button.
Review access
Six code boxes, resend, and an option to correct the email address.
Verify account
Brokerage selection and the option to use connected accounts.
Connect a brokerage

Your backend creates an onboarding URL with an optional email hint. Your app opens the Trade It modal. The user reviews access and signs in. Your app receives an authorization event and sends the code to your backend. The modal opens brokerage connection.

Configure your client ​

Your backend · One-time setup

Create your organization and save its credentials. Register a redirect URI on the website where you will open the portal, then set these server environment variables:

Show code example
dotenv
TRADE_IT_CLIENT_ID=your_client_id
TRADE_IT_CLIENT_SECRET=your_client_secret
TRADE_IT_REDIRECT_URI=https://app.example.com/auth/tradeit/callback

Match your website’s origin

The redirect_uri must use the same scheme, hostname, and port as the website opening the portal. Register a separate URI for each test or production origin. Use HTTPS in production; HTTP localhost is supported for development. The portal sends its authorization event to this origin without navigating to the URI.