Getting Started

Before integrating with XFX, ensure the following prerequisites are complete:

  1. Completed onboarding with XFX
  2. Access to the XFX customer portal
  3. XFX-issued API credentials (Client ID and Client Secret)
  4. Access to a development environment

Onboarding

Onboarding is required before you can access XFX APIs. During onboarding, XFX will collect information about you and your business to complete required KYB (Know Your Business) checks.

Once onboarding is complete, XFX will provision your account and enable API access.


XFX Customer Account and API Credentials

After onboarding, you will receive access to the XFX customer portal, and will be granted your API credentials:

  • Client ID
  • Client Secret

⚠️

Keep your credentials secure

These credentials are used to authenticate all API requests. Treat them as sensitive secrets and store them securely (similar to passwords or private keys).


Environments

XFX provides multiple environments to support development, testing, and live trading.

EnvironmentBase URLPurpose
Developmenthttps://dev-api.xfx.ioInitial testing and integration
Staginghttps://staging-api.xfx.ioPre-production validation
Productionhttps://api.xfx.ioLive trading once your integration is approved

Recommended Environment Variables

We recommend configuring the following environment variables to simplify development and avoid hardcoding sensitive values.

VariableDescription
XFX_CLIENT_IDYour XFX Client ID
XFX_CLIENT_SECRETYour XFX Client Secret
XFX_BASE_URLAPI base URL for the selected environment
XFX_ACCESS_TOKENOAuth access token (generated during authentication)

Next: Authentication →
Generate access tokens and make your first API request