Skip to content

Authentication

All TradeX APIs require authentication using API keys.

  1. Log in to your TradeX account
  2. Navigate to API Settings
  3. Generate a new API key pair
  4. Save your API key and secret securely

Important: Your API secret is only shown once. Store it securely.

Include your API key in the request headers:

Authorization: Bearer YOUR_API_KEY

Or use API key authentication:

X-API-Key: YOUR_API_KEY
X-API-Secret: YOUR_API_SECRET

Some services use JWT (JSON Web Tokens) for authentication:

  1. Authenticate with the Auth Service to get a JWT token
  2. Include the token in subsequent requests:
Authorization: Bearer YOUR_JWT_TOKEN
  • Never share your API keys: Keep them confidential
  • Use HTTPS only: Never send API keys over unencrypted connections
  • Rotate keys regularly: Update your API keys periodically
  • Use IP whitelisting: Restrict API key usage to specific IP addresses
  • Monitor usage: Regularly check your API key usage logs

Authenticated requests are subject to rate limits. See the Rate Limiting guide for details.