This repository is a multi-language, multi-service monorepo for distributed data management, trading, analytics, and visualization. It contains several core packages, each with a distinct role in the ecosystem. The codebase includes services written in Go, Rust, TypeScript/Node.js, and React.
Distributed data manager and API service. Handles data ingestion, storage (MongoDB), and provides endpoints for orderbook, trades, and candles (especially for dYdX exchange).
Data processing and analytics service. Uses gRPC, InfluxDB, and various Rust libraries for data handling and analytics.
Order executor and backend service. Integrates with dYdX protocol, MongoDB, and provides Express-based APIs for order execution and management.
Frontend visualization and dashboard. Bootstrapped with Create React App, uses MUI, ApexCharts, and other libraries for data visualization and UI.
Event service and gRPC server. Handles protobuf-based event and market state management.
Scheduler and event automation service. Connects to nighthawks via gRPC, loads event configs, and schedules/repeats events.
Database orchestration for Glamdring and Legolas (MongoDB). Provides scripts for starting/stopping, creating/deleting collections, and resetting databases.