alexeyneu / solcpp

sol-perp trading robot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

solcpp - A fast Solana and Mango Markets C++ SDK.

A fast C++ SDK to interact with Solana and Mango Markets. The SDK also includes a collection of examples to send transactions to Solana and trade on Mango Markets.

Building

The project uses conan.io to manage dependencies. Install Conan here.

$ cd solcpp && mkdir build && cd build
$ conan install .. --build=missing -s build_type=Release
$ cmake .. -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake -DCMAKE_POLICY_DEFAULT_CMP0091=NEW -DCMAKE_BUILD_TYPE=Release
$ cmake --build .
$ ./bin/tests # Run tests

Dependencies

  • C++17
  • cmake
  • conan io

Notes

  • If you have issues building libcurl on gcc-9, try clang. See issue.

  • In addition, some dependencies were directly included and slightly modified to work well with the rest of the code base.

Documentation

Mango Markets documentation can be found here.

to make id.json use f.py from examples

About

sol-perp trading robot

License:Other


Languages

Language:C++ 98.9%Language:CMake 1.1%