exchange_broker_oauth_code
Exchanges an OAuth authorization code from a broker callback for access and refresh tokens to enable authenticated trading operations.
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 |