generate_broker_auth_url
Generate an OAuth authorization URL so users can connect their Schwab, Alpaca, Tradovate, or OANDA broker account. Returns the redirect URL for authentication.
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}) |