generate_broker_auth_url
Generate an OAuth authorization URL to connect a broker account (Schwab, Alpaca, Tradovate, OANDA) for a specified user. The returned URL redirects the user to authorize access.
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}) |