Skip to content

Order Book is a trade engine written using Java Spring Boot. Use Rest to access the endpoints/API.

Notifications You must be signed in to change notification settings

FractalFinTech/OrderBook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Order Book

Order Book is a subsystem of an exchange, normally is called the trade engine.

It is at its initial stage of development at the moment.

Purpose

  • There is not much open source trade engine out there at the moment, with that, this project would like to address that by the creation of this project.
  • Have a trade engine that can be used by anyone wanting to understand what a trade engine looks like, or simply use it in an exchange system.

Objective

  • Be able to handle large amount of transactions per hour using cheap/affordable off-the-shelf resources.

Building It

This project uses Maven to build the project.

mvn package

To run the package:

java -jar target/orderbook-0.0.1-SNAPSHOT.jar

Test Using Curl

Add item to order book list

curl http://localhost:8090/market/add/item/diner0

Get list

curl http://localhost:8090/market/list/get

Bid transaction

curl -H "Content-Type: application/json" -d '{"name":"diner0", "price":"100", "qty":"20"}' -X POST http://localhost:8090/market/bid/add

Offer transaction

curl -H "Content-Type: application/json" -d '{"name":"diner0", "price":"100", "qty":"10"}' -X POST http://localhost:8090/market/offer/add

Get market bid list

curl -H "Content-Type: application/json" -d '{"name":"diner0"}' -X POST http://localhost:8090/market/bid/get

Get market offer list

curl -H "Content-Type: application/json" -d '{"name":"diner0"}' -X POST http://localhost:8090/market/offer/get

Check out the file test.sh for more information on testing.

Dev Environment Requirements

  • Linux (Ubuntu) OS
  • Java SDK
  • Spring Boot STS (Eclipse)
  • Maven
  • Curl

Refences

About

Order Book is a trade engine written using Java Spring Boot. Use Rest to access the endpoints/API.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published