Skip to content

feat: Hyperliquid Integration and Perpetual Trading (#82)#452

Open
Susuhome wants to merge 2 commits intoSpectral-Finance:mainfrom
Susuhome:feat/hyperliquid
Open

feat: Hyperliquid Integration and Perpetual Trading (#82)#452
Susuhome wants to merge 2 commits intoSpectral-Finance:mainfrom
Susuhome:feat/hyperliquid

Conversation

@Susuhome
Copy link

@Susuhome Susuhome commented Mar 8, 2026

Hyperliquid perpetual trading integration for issue #82.

TradingEngine (GenServer)

  • Order placement (limit/market, long/short, reduce_only)
  • Leverage control with configurable max (default 50x)
  • Position management (open/close, per-symbol)
  • Risk monitoring (exposure, leverage, risk levels)
  • PnL tracking with trade history
  • Order cancellation and filtering

Acceptance Criteria

  • Order placement and management
  • Position tracking system
  • Risk management (leverage limits, exposure monitoring)
  • PnL tracking
  • Liquidation protection (threshold config)
  • Tests (11 tests, 0 failures)

Budget: $900

Susuhome added 2 commits March 8, 2026 16:28
)

- TradingEngine: orders, positions, leverage, risk monitoring, PnL tracking
- 11 tests, all passing
- Order validation: invalid side, order type, symbol, size, leverage
- Cancel guards: already_cancelled detection
- PnL: win_rate calculation, breakeven tracking
- Typespecs on all public functions
- Tests: 11 → 24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant