Skip to content

Provides a Redis Limit Order Book implementation with other functions.

License

Notifications You must be signed in to change notification settings

maattfox/bitmex-OrderBookService

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

📈 bitmexOrderBook-Service

Provides a Redis Limit Order Book implementation with other functions.

Written as a proof-of-concept for creating a simple websocket to database service for storing a temporary orderbook, quote and trade data for research.

The orderbook is implemented with a Redis db, where each each key refers to the price, and value the size of orders at the price level. Quotes and Trade data are stored in MongoDB collections. A threaded websocket connection is created to BitMEX and messages are recieved and added to a thread-safe queue. A parser reads the message and adds to the databases.

Todo:

Here are the few things I noticed, and wanted to add.

  • Finish implementing docker
  • Implement better database handling
  • More efficient handling for websockets
  • Robust env variables and docker-compose
  • Threading support for Orderbook, Quote and Trade parsing - currently just manages the current number of messages from BitMEX, unless a lot of messages comes through.
  • Test latency and costs on AWS
  • Use AWS Elasticache, VPC for MongoDB

About

Provides a Redis Limit Order Book implementation with other functions.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published