• Stars
    star
    135
  • Rank 269,297 (Top 6 %)
  • Language
    C++
  • Created about 7 years ago
  • Updated almost 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

C++ trading and matching engine

Summary

C++ order booking trading / matching engine

Dependencies

Building and installing

This uses the standard autotools pattern:

$ ./autogen.sh
$ CXXFLAGS="-O2 -Wall -g -I/usr/local/include/evhtp" ./configure
$ make			# compile
$ make check		# run tests
$ sudo make install	# install on system

Interface

obsrv speaks JSON-RPC over HTTP.

Test client

A test client cli.js is available. Run ./cli.js help for a summary of example commands:

$ ./cli.js help
Commands:
info				Show server info
market.list			Show all markets
market.add SYMBOL [booktype]	Add new market
book SYMBOL [depth]		Show order book
order order-id			Show info on a single order
order.cancel order-id		Cancel a single order
order.modify order-id		Modify a single order
order.add [json order info]	Add new order