A client that connects to Finnhub using the libwebsockets library, and dumps the incoming trades into a text file.
Made for the RTES course, AUTH, 2022
- libwebsockets library
git clone https://github.com/warmcat/libwebsockets.git
- cd to the libwebsockets directory (Should be
cd libwebsockets
) sudo apt-get install libssl-dev
mkdir build
cd build
cmake ..
make
sudo make install
sudo ldconfig
- Enter your API key
make
./client
After a successful connection, the client will continue to run until the Ctrl + C signal is sent.
A .txt file will be created that contains all the incoming trades, as well as UNIX timestamp in milliseconds at the end of every received message from the server, depicting the time that the parsing of the message was finished.
Test 24 hour dump file can be found here