This is a sample app that shows how to use gRPC to build a simple order book. It is a simple app that connects to the exchanges and shows the order book for a given pair.
First, you need to install the dependencies. You can find the dependencies for each OS below.
$ brew install protobuf
$ sudo apt-get install libprotobuf-dev protobuf-compiler
$ cargo run --bin krt-server
You can interact with the server using grpcurl.
The available endpoints are:
Show information about the health of the server. It is used to check if the server is running and connected to the exchanges.
You can check the health of the server by calling the following endpoint:
$ grpcurl -plaintext -import-path ./proto -proto healthcheck.proto '[::1]:50051' healthcheck.HealthCheck/HealthCheck