Hypergraph.Trade

Mathematical approach to cryptocurrency arbitrage on Hyperliquid DEX using graph theory and statistical analysis.

5%
Max Daily Loss
0.7+
Correlation
10s
Update Cycle

Features

Core capabilities of the hypergraph trading system.

Hypergraph Theory

Models market relationships as mathematical hypergraphs where nodes represent price levels and hyperedges capture correlations.

Statistical Arbitrage

Identifies cointegrated asset pairs using Engle-Granger tests and executes atomic trades on divergences.

Risk Management

Fractional Kelly Criterion with volatility fallback, multi-strategy stop losses, and portfolio-level tracking.

Performance

Tracks top 50 assets with efficient hypergraph updates, state persistence, and sub-second opportunity detection.

Automation

Market regime detection, atomic trade execution, circuit breaker protection, and comprehensive monitoring.

Safety

State persistence, emergency close system, liquidity filtering, comprehensive validators, testnet-first development.

Process

Trading cycle executes every 10 seconds.

01

Data Collection

Fetches orderbook and price data from Hyperliquid DEX for top 50 trading pairs.

02

Graph Construction

Builds hypergraph where nodes are price levels and hyperedges represent correlations.

03

Opportunity Detection

Identifies cointegrated pairs and correlation-based trading opportunities.

04

Risk Assessment

Calculates position sizes using fractional Kelly Criterion and portfolio correlation.

05

Trade Execution

Atomically executes trades with multi-strategy stop-loss and trailing profit.

06

Position Monitoring

Monitors positions with market regime detection and circuit breaker protection.

Performance & Risk

Risk parameters and operational metrics.

5%
Daily Loss Limit
2%
Stop Loss
5%
Take Profit
5
Max Positions
$100
Min Trade
10s
Update Cycle

Pairs Arbitrage

  • • Statistical arbitrage on correlated pairs
  • • Market neutral long/short positions
  • • 2% divergence threshold for entry
  • • Atomic execution with automatic hedging

Correlation Trading

  • • Tracks assets with >0.7 correlation
  • • Z-score based entry signals
  • • Cointegration testing for pair validation
  • • Dynamic threshold adjustment