Authentication Flow
Authentication Configuration
Auth Domains
During onboarding, you’ll provide your public key and receive your
client_id and audience values.
Step 1: Create Client Assertion JWT
Create a JWT with these claims, signed with your private key using RS256:Step 2: Request Access Token
Exchange your signed JWT for an access token:Response
The
expires_in value is in seconds. With a 3-minute (180 second) expiration, you must refresh tokens frequently.Step 3: Use Token in API Requests
Include the access token in theAuthorization header for every request.
gRPC Streaming
Include the token in gRPC metadata:Token Refresh Strategy
Since tokens expire every 3 minutes, implement automatic refresh:Handling Authentication Errors
Common Authentication Errors
Streaming Scopes
Scopes are enforced on streaming RPCs the same way they are on REST endpoints. The most common gRPC streams and their required scopes:
See the full scope reference in the trader guide authentication page.
Key Rotation
You can rotate your keys without downtime:- Generate a new key pair
- Submit the new public key to us
- We add the new key (both old and new work during transition)
- Update your systems to use the new private key
- Notify us to remove the old public key
Next Steps
Authentication Setup
Complete onboarding guide with key generation
Market Data Streaming
Learn how to stream market data
Order Streaming
Subscribe to order updates
Error Handling
Handle errors and implement reconnection