Pub/Sub service taking depth quotes from Binance and expose them trough websocket to frontend with Nats.IO streaming
This is a demo .Net project for running in local development environment. It features:
- Running multiple Docker containers with Docker Compose
- Publisher and Subscriber services
- Communication over NATS between two services
- Publisher connects to Binance websocket API with BinanceNet
- Subscriber get data and expose it to the WebSocket channel
ws://localhost:5050/public.depth.${symbol}
- ClientUI service built with Angular 15 and served by Nginx on
https://localhost:4004/
Put your Binance API keys into .env file
BINANCE_API_KEY=YOUR-API-KEY
BINANCE_SECRET_KEY=YOUR-SECRET-KEY
Change interested symbol
SYMBOL=btcusdt
To build containers, run:
docker-compose build
To start the services, run:
docker-compose up