bybit

roq-bybit

Warning

Work in progress. Please contact us, if you want to use this gateway.

Environments

Production

Connection

URI

Comment(s)

REST

https://api.bybit.com

Akamai

WebSocket

wss://stream.bybit.com/realtime

Amazon Cloudfront

Data center

Singapore (to be confirmed)

Test

Connection

URI

Comment(s)

REST

https://api-testnet.bybit.com

Akamai

WebSocket

wss://stream-testnet.bybit.com/realtime

Akamai

Data center

Singapore (to be confirmed)

Installation

Conda

Install

conda install -y roq-bybit

Configuration

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

# then modify $CONFIG_FILE_PATH to match your specific configuration

Using

roq-bybit \
      --name "bybit" \
      --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-bybit --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_bybit group

[roq_bybit]
MY_SERVER

Docker

docker pull roqtrading/roq-bybit

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