This project implements a C++ client for interacting with the Deribit trading platform's API. It enables users to authenticate with the API, retrieve the order book, and place buy/sell orders on the Deribit test network using JSON-RPC over HTTP.
- Authentication: OAuth 2.0 authentication to obtain an access token using
client_id
andclient_secret
. - Public API: Fetches order book details for a specified instrument.
- Private API: Places buy, sell,modify and cancel orders.
This project uses the following libraries:
libcurl
: For handling HTTP requests.nlohmann/json
: For JSON parsing.
Note: You can install these dependencies via vcpkg
(a C++ package manager) or your preferred method.
- Package manager for c++.
git clone https://github.com/microsoft/vcpkg.git
cd vcpkg
.\bootstrap-vcpkg.bat
.\vcpkg integrate install
-
Install
vcpkg
following the instructions on vcpkg GitHub. -
Install dependencies:
vcpkg install curl vcpkg install nlohmann-json
- Clone the repo.
git clone https://github.com/chilkaditya/DeribitTrader.git cd DeribitTrader
- Build using make (you can use your fav build system).
make ./your_exe_file.exe