Skip to content

Latest commit

 

History

History
19 lines (16 loc) · 480 Bytes

File metadata and controls

19 lines (16 loc) · 480 Bytes

Architecture

flowchart TD
  A[On-chain Event Source] --> B[Ingestion Layer]
  B --> C[Processing & Aggregation]
  C --> D[Database]
  D --> E[REST / WebSocket API]
Loading

Components

  • Ingestion: listens to smart contract events
  • Processing: calculates volume, open interest, funding, PnL
  • Storage: PostgreSQL schema with tables:
    • trades
    • funding_rates
    • open_interest
  • API Layer: endpoints for metrics, history, real-time feed