OKEx

roq-okex

Environments

Production

Connection

URI

Comment(s)

REST

https://www.okex.com/

Cloudflare

WebSocket

wss://real.okex.com:8443/ws/v3

Cloudflare

Data center

Hong Kong

Test

Connection

URI

Comment(s)

REST

https://testnet.okex.com

Cloudflare

WebSocket

wss://real.okex.com:8443/ws/v3

Cloudflare

Data center

Hong Kong

Installation

Conda

Install

conda install -y roq-okex

Configuration

cp $CONDA_PREFIX/share/roq/okex/config.toml $CONFIG_FILE_PATH

# then modify $CONFIG_FILE_PATH to match your specific configuration

Using

roq-okex \
      --name "okex" \
      --config-file "$CONFIG_FILE_PATH" \
      --client-listen-address "$UNIX_SOCKET_PATH" \
      --metrics-listen-address "$TCP_LISTEN_PORT" \
      --rest-uri "$REST_URI" \
      --ws-uri "$WS_URI"

Flags

Only notable flags are mentioned here. Please refer to roq-okex --help for all flags.

--cancel-on-disconnect

The Logon FIX message can be used to instruct the exchange to automatically cancel all orders if a disconnect has been detected.

Ansible

Add your host to the roq_okex group

[roq_okex]
MY_SERVER

Docker

docker pull roqtrading/roq-okex

Implementation

Restrictions

Incoming Events

Event

Connection

Message(s)

Comment(s)

ReferenceData

MarketStatus

TopOfBook

MarketByPrice

MarketByOrder

TradeSummary

SessionStatistics

DailyStatistics

OrderAck

OrderUpdate

TradeUpdate

PositionUpdate

FundsUpdate

Outgoing Events

Event

Connection

Message(s)

Comment(s)

CreateOrder

ModifyOrder

CancelOrder