HFT Tables: WebSockets

Connecting to WebSocket Stream

Syntax & Example
ws://localhost:6969

Users can get the feedback for their strategies through our web sockets. Users are just required to connect to port 6969 with IP of wherever they are running main engine.

Web socket output format

Syntax & Example
Output-
00020005True

The output format is like shown above. In first 4 bits you will get the symbol id. In next 4 bits it is strategy index which has been true and last 4 characters are simply "True". While receiving the data if for a particular symbol any of the applied strategy becomes true above output is sent to all the clients connected. The web sockets have been written in C++ so as to maintain the efficiency and low latency.