bloq / cpptrade

C++ trading and matching engine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

C++ trading and matching engine


Languages

Language:C++ 64.6%Language:M4 20.9%Language:JavaScript 11.8%Language:Shell 1.2%Language:Makefile 0.9%Language:Objective-C 0.5%