Skip to content

YungQuant/hsdb

Repository files navigation

HSDB

Requirements

  1. C++ Rest SDK

  2. CMake and Make (>=3.7)

Installing Requirements

Just run the shell script in the root directory

sh prereqs.sh

Branching

Make sure to create a branch when developing:

git checkout -b @name/feature

Then make a pull request when you want to merge to main dev.

Building and Running

1. Make the build directory

mkdir build
cd build

2. Run cmake and make:

cmake ..
make

3. Run the app:

./hsdb

Example Usage

Make a HTTP(S) Request:

#include "./util/request.hpp"

web::http::http_response response = utility::request("GET", "http://url.com").get();
web::json::value value = response.extract_json().get();

Listen to a WS(S) Server:

#include "./util/websocket.hpp"

web::websockets::client::websocket_callback_client wss = utility::websocket("wss://url.com).get();

wss.set_message_handler([=](web::websockets::client::websocket_incoming_message message) {
    std::string messageStr = message.extract_string().get();
});

About

low latency cpp bitmex market maker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published