This project connects to a trading server, receives market trade data, and saves it to a JSON file. It also requests any missing trade sequences from the server.
- Windows OS
- Visual Studio (or MinGW for GCC)
- Winsock2 (included in Windows SDK)
Ensure you have a C++ compiler installed. If using MinGW, install it from:
git clone https://github.com/your-repo/trade-data-collector.git
cd trade-data-collectorg++ main.cpp -o trade_collector -lws2_32Using Visual Studio Developer Command Prompt:
cl main.cpp /link ws2_32.libtrade_collector.exe- The collected trade data is saved in
abx_trades.json. - Missing sequences are automatically requested from the server.
- The console logs received and recovered trade sequences.
- Ensure the trading server is running and accessible at
127.0.0.1:3000. - Modify
SERVER_ADDRESSandSERVER_PORTin the code if needed. - Run the program with administrator privileges if required.
This project is licensed under the MIT License.