Skip to content

SpookyJumpyBeans/crypto-market-microstructure-analyzer

Repository files navigation

Level 2 Market Microstructure Analyzer (OFI)

A high-performance Python engine that detects Order Flow Imbalance (OFI) and Hidden Liquidity (Icebergs) on the Kraken BTC/USD exchange.

Key Features

  • Microstructure Math: Calculates OFI (Order Flow Imbalance) vectors to predict short-term price movements, distinguishing between aggressive market orders and passive limit order replenishment.
  • Event-Driven Architecture: Uses asyncio and websockets to handle 50+ ticks/second without blocking.
  • Cloud Pipeline: buffers signals and pushes significant "Momentum Ignition" events to AWS DynamoDB and raw tick data to S3 for backtesting.

Tech Stack

  • Python: Asyncio, NumPy
  • AWS: S3, DynamoDB, CloudWatch
  • Math: Z-Score Dynamic Thresholding for volatility adjustment

Visuals

image

About

High-frequency Order Flow Imbalance (OFI) detector using Python, Asyncio, and AWS.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages