Supported regions
Global
Domain:
www.okx.comThe default region. No extra configuration needed.market: 'GLOBAL' (or omit entirely)EEA
Domain:
my.okx.comFor users registered under the European Economic Area entity.market: 'EEA'US
Domain:
app.okx.comFor users registered under the OKX US entity.market: 'US'Configuring the RestClient
Pass themarket option to the RestClient constructor. All subsequent REST calls will be routed to the correct regional domain.
Configuring the WebsocketClient
TheWebsocketClient (and WebsocketAPIClient) accept the same market option.
The market option
The market property is typed as APIMarket and is shared between RestClientOptions and WSClientConfigurableOptions:
market is equivalent to setting market: 'GLOBAL'.
Demo trading mode
All regions support OKX’s paper/demo trading environment. SetdemoTrading: true alongside your region to use demo trading credentials without touching live funds.

