Deribit-OEMS is an application written in C++ designed for interacting with the Test Deribit-API. It provides various functions like placing orders, viewing current positions and an additional functionality for clients to subscribe to specific tokens using websocket servers.
- Place Orders: Place market/limit buy and sell orders on Deribit
- Cancel Orders: Cancel open orders by OrderID
- Modify Orders: Edit existing orders by amount and price
- Get Order Book: Fetch and display Order Book
- View Current Positions: Displays current open positions
- Websocket Servers: Allows subscription to tokens and receiving updates
- Spot, futures and options for all supported symbols: Offers compatibility with all symbols
- C++ Compiler (C++ 17)
- IDE (for example VS Code)
-
Clone the Deribit-OEMS master branch to your local device.
-
After cloning the Deribit-OEMS repo, use the code provided below to use the websocketpp submodule:
git submodule update --init --recursive
-
Update your cURL library
-
Rename the .env.dist to .env and enter you API key and secret where it is mentioned. Keep in mind, do not put quotation marks around them, and leave no spaces.
- cURL to make HTTP requests
- websocketpp for server side functionality
- nlohmann/json for JSON parsing
- cpp-dotenv To read .env file