API trading on What Exchange
How to connect and use the API to trade perps
What Exchange APIs can connect to third-party applications and allow you to develop your own tools. The API for What Exchange has many similarities to other exchange APIs, making it easy for experienced traders to quickly get started.
Getting Started
- Get Account Id, API Key and API Secret
- Go to the portfolio section (opens in a new tab)
- Click "Create API key"
- Confirm and get the credentials

- Integrating the API Detailed docs are available at here (opens in a new tab)
Mainnet:
- Supported network (deposit/withdraw): Arbitrum One
- Chain ID: 42161
- Broker ID: what_exchange
- Base endpoint: https://api-evm.orderly.org (opens in a new tab)
Testnet:
- Supported network (deposit/withdraw): Arbitrum Goerli
- Chain ID: 421613
- Broker ID: what_exchange
- Base endpoint: https://testnet-api-evm.orderly.org (opens in a new tab)
For testnet, go to https://trade.what.exchange/perp/PERP_BTC_USDC (opens in a new tab), you can get test USDC by clicking the "Get test USDC" button and waiting a few minutes. Your What Exchange account will receive the test USDC.

Getting started with CCXT
What Exchange is integrated with CCXT, a popular library for crypto traders looking to work with new APIs and multiple exchanges.
API Endpoints
Mainnet:
https://api-evm.orderly.org
Testnet:
https://testnet-api-evm.orderly.org
For detailed API documentation, please refer to the Orderly Network documentation (opens in a new tab).
For CCXT integration details, visit the CCXT documentation (opens in a new tab).