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
expires_in is in seconds. 86400 is 24 hours. Reuse the token until close to that time.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
Access tokens last 24 hours. Cache one token per process and refresh it shortly beforeexpires_in:
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