Skip to content

Langford-tang/DeribitTrader

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deribit Trading API Client

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.

Features

  • Authentication: OAuth 2.0 authentication to obtain an access token using client_id and client_secret.
  • Public API: Fetches order book details for a specified instrument.
  • Private API: Places buy, sell,modify and cancel orders.

Dependencies

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.

Installing vcpkg

  1. Package manager for c++.
git clone https://github.com/microsoft/vcpkg.git
cd vcpkg
.\bootstrap-vcpkg.bat
.\vcpkg integrate install

Installing Dependencies with vcpkg

  1. Install vcpkg following the instructions on vcpkg GitHub.

  2. Install dependencies:

    vcpkg install curl
    vcpkg install nlohmann-json

Setup & Run

  1. Clone the repo.
    git clone https://github.com/chilkaditya/DeribitTrader.git
    cd DeribitTrader
  2. Build using make (you can use your fav build system).
    make
    ./your_exe_file.exe

About

A trading system for derbit test account.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 93.3%
  • Makefile 6.7%