exchange_broker_oauth_code
Exchange an OAuth authorization code for broker access and refresh tokens after the user returns from the authorization page, enabling authenticated trading API access.
Instructions
Exchange an OAuth authorization code for broker access/refresh tokens. Call this after the user returns from the broker's authorization page.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Authorization code from the broker callback URL | |
| state | Yes | State token returned by generate_broker_auth_url | |
| redirect_uri | No |