generate_broker_auth_url
Generates an OAuth authorization URL for a user to securely connect their broker account. Returns the URL to redirect the user to for authentication with Schwab, Alpaca, Tradovate, or OANDA.
Instructions
Generate an OAuth authorization URL for a user to connect their broker account (Schwab, Alpaca, Tradovate, OANDA). Returns the URL to redirect the user to.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| broker | Yes | Which broker to connect | |
| user_id | Yes | User ID to associate the OAuth token with | |
| redirect_uri | No | Override callback URI (default: algochains.ai/oauth/callback/{broker}) |