OKX settings window:

Connector instruction

Endpoint – the OKX API endpoint type: Spot or Futures.

Default value: Spot

Sync positions at startup – the flag to synchronize positions between MT5 and OKX at startup.

Default value: not selected

Log headers – the flag to enable logging HTTP headers during the data exchange between MT5 and OKX.

Default value: not selected

API URL – the OKX API endpoint URL.

Default value: https://www.okx.com

Demo trading – the flag to enable OKX demo trading.

Default value: not selected

API key – previously registered OKX API key.

Default value: empty string

Secret key – a secret key associated with the API key.

Default value: empty string

Passphrase – a passphrase associated with the API key.

Default value: empty string

Quote currency – OKX symbol quote currency.

Default value: empty string

MT profit currency – MT5 symbol profit currency.

Default value: empty string

Trade mode – the OKX account trade mode: Cash for spot, Isolated margin, or Cross-margin for futures.

Default value: Cash for spot and Isolated margin for futures

Position sync period (s) – the periodicity of positions synchronization in seconds. Set to 0 to disable periodic positions synchronization.

Default value: 180

Click OK in a settings window. Wait while the selected connector is initialized. If the initialization was successful, the green Pause button will appear and the Running message will appear under the lines with version and license information.

Connector instruction

To pause the CONNECTOR click the Pause button. If the red Resume button is visible and the Paused message is shown under the lines with version and license information, positions will not be synchronized until the Resume button is clicked.

Connector instruction