To get BIDs and ASKs order book GET http://localhost:8090/api/v1/order-book
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
What things you need to install the software and how to install them
- InfluxDB: Install Time series databse is required to store orderbook updates.
- Run influxdb on port 8086 (default one)
- Open CLI of influxdb by command
influxd -config /usr/local/etc/influxdb.conf
- Run these commands one by one:
CREATE USER sanjay WITH PASSWORD 'timeseries4days' WITH ALL PRIVILEGES
CREATE DATABASE mstakx
CREATE RETENTION POLICY "two_hours_mstakx" ON "mstakx" DURATION 2h REPLICATION 1 DEFAULT
CREATE SUBSCRIPTION "sub0" ON "mstakx"."two_hours_mstakx" DESTINATIONS ALL 'http://localhost:8090/api/v1/order-book/add-event'
- JAVA 8: Install It is requrired as application uses spring boot.
- Clone the repository via ssh/http.
- Run this command 'mvn spring-boot:run' from root of the project
Hit http:localhost:8090/
with all the API routes and go to the homepage.
You can now proceed to test the APIs using Postman or implement new features.