Skip to content

Adefebrian/Quantrader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Quantrader V1

A 33-Agent Quantitative Trading Platform for Hyperliquid

Built with React + TypeScript + Cloudflare Workers β€” featuring a 15-agent core engine, 18 AI investor personas powered by Fincept Lab, and a CFA-level quantitative analytics suite.

Inspired by https://github.com/SAHU-01/hyperliquid-ai-trader and https://github.com/Fincept-Corporation/FinceptTerminal

Version Agents Stack

Author: Brian (adefebrian.com)


πŸ“‹ Table of Contents


🌟 Overview

This project is a production-grade algorithmic trading system for the Hyperliquid DEX. It combines quantitative finance (GARCH volatility, Kelly criterion, VaR risk management) with multi-agent AI consensus to make autonomous trading decisions in paper or live mode.

Screenshot 2026-04-25 at 18 57 31

Key Highlights

Feature Description
33-Agent Ensemble 15 core quant agents + 18 AI investor personas (Buffett, Soros, Dalio, etc.) voting together
Fincept Lab CFA-level analytics, 590+ QuantLib endpoints, macro intelligence, risk stress testing
Dynamic Margin Position sizing scales from $12 to 60% of NAV based on composite confidence
Fixed Leverage User-configured leverage (e.g., 20x) stays fixed β€” never exceeds max_leverage
Multi-LLM Support Alibaba Qwen, OpenAI, Anthropic, DeepSeek, Google Gemini β€” any OpenAI-compatible API
Paper Mode Full simulation with realistic fills, fees, TWAP/VWAP slicing, and queue modeling
Real-time Dashboard 6 views: Mission Control, Agent Theater, Fincept Lab, MCP Monitor, Trade History, Settings
Scalping Presets One-click intensity modes: LOW, MEDIUM, HIGH, AGGRESSIVE
DB Reset from UI Reset database, portfolio, and settings directly from the dashboard

πŸ— System Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                     FRONTEND (React + Vite)                     β”‚
β”‚  Mission Control β”‚ Agent Theater β”‚ Fincept Lab β”‚ Settings β”‚ ... β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                          β”‚ HTTP / WebSocket
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚               CLOUDFLARE WORKER (API Gateway)                   β”‚
β”‚                                                                 β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”   β”‚
β”‚  β”‚              AGENT RUNNER (runCycle)                      β”‚   β”‚
β”‚  β”‚                                                          β”‚   β”‚
β”‚  β”‚  Tier 1: Signal Layer                                    β”‚   β”‚
β”‚  β”‚    β”œβ”€ 01 Regime Detection (HMM)                          β”‚   β”‚
β”‚  β”‚    β”œβ”€ 02 Alpha Research (IC/IR)                           β”‚   β”‚
β”‚  β”‚    β”œβ”€ 03 Sentiment & News (Funding, Fear/Greed)          β”‚   β”‚
β”‚  β”‚    β”œβ”€ 04 Microstructure (OFI, Liquidity)                 β”‚   β”‚
β”‚  β”‚    β”œβ”€ 05 Volatility (GARCH)                              β”‚   β”‚
β”‚  β”‚    └─ 15 Technical Analysis (MTF Confluence)             β”‚   β”‚
β”‚  β”‚                                                          β”‚   β”‚
β”‚  β”‚  Fincept Committee (18 AI Personas)                      β”‚   β”‚
β”‚  β”‚    β”œβ”€ Buffett, Graham, Lynch, Munger, Soros, Dalio...    β”‚   β”‚
β”‚  β”‚    β”œβ”€ Fed Analyst, Macro Strategist, Credit Analyst      β”‚   β”‚
β”‚  β”‚    └─ Geopolitics, Energy, China Watcher                 β”‚   β”‚
β”‚  β”‚                                                          β”‚   β”‚
β”‚  β”‚  Tier 2: Quant Engine                                    β”‚   β”‚
β”‚  β”‚    β”œβ”€ 06 Statistics (ADF, Kalman)                        β”‚   β”‚
β”‚  β”‚    β”œβ”€ 07 Mathematics (Kelly, Cov Shrinkage)              β”‚   β”‚
β”‚  β”‚    β”œβ”€ 08 Risk Management (VaR, VETO Power)               β”‚   β”‚
β”‚  β”‚    └─ 09 Portfolio Construction (Fractional Kelly)       β”‚   β”‚
β”‚  β”‚                                                          β”‚   β”‚
β”‚  β”‚  Tier 3: Execution                                       β”‚   β”‚
β”‚  β”‚    β”œβ”€ 10 Execution (TWAP/VWAP/Iceberg)                   β”‚   β”‚
β”‚  β”‚    └─ 11 Paper Simulator (Fill + Queue)                  β”‚   β”‚
β”‚  β”‚                                                          β”‚   β”‚
β”‚  β”‚  Tier 4: Feedback Loop                                   β”‚   β”‚
β”‚  β”‚    β”œβ”€ 12 Attribution (Brinson)                           β”‚   β”‚
β”‚  β”‚    β”œβ”€ 13 Learning (Online Weight Updates)                β”‚   β”‚
β”‚  β”‚    └─ 14 Watchdog (Health Monitor)                       β”‚   β”‚
β”‚  β”‚                                                          β”‚   β”‚
β”‚  β”‚  β–Ί ORCHESTRATOR (Weighted Consensus Voting)              β”‚   β”‚
β”‚  β”‚    β†’ composite > threshold? β†’ agreement β‰₯ min? β†’ TRADE   β”‚   β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜   β”‚
β”‚                                                                 β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”‚
β”‚  β”‚  D1 Database β”‚  β”‚ MCP Bridge  β”‚  β”‚ Fincept QuantLib Proxy β”‚  β”‚
β”‚  β”‚  (Settings,  β”‚  β”‚ (6 servers) β”‚  β”‚ (api.fincept.in)       β”‚  β”‚
β”‚  β”‚   Trades,    β”‚  β”‚             β”‚  β”‚ 590+ endpoints         β”‚  β”‚
β”‚  β”‚   Portfolio) β”‚  β”‚             β”‚  β”‚                        β”‚  β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ€– The 33-Agent System

Screenshot 2026-04-25 at 18 58 38

Tier 1–4: Core Agents (1–15)

# Agent Role Key Algorithm
01 Regime Detection Signal (voting) Hidden Markov Model, Hurst Exponent
02 Alpha Research Signal (voting) Information Coefficient, Ensemble IC
03 Sentiment & News Signal (voting) Funding Rate z-score, Fear & Greed Index
04 Microstructure Signal (voting) Order Flow Imbalance (OFI), Urgency Score
05 Volatility Signal (voting) GARCH(1,1), Realized vs Implied Vol
06 Statistics Quant Support ADF Test, Kalman Filter, Cointegration
07 Mathematics Quant Support Portfolio Optimization, Covariance Shrinkage
08 Risk Management VETO Power VaR (Historical + Cornish-Fisher), Circuit Breakers
09 Portfolio Construction Sizing Fractional Kelly Criterion, Dynamic TP/SL
10 Execution Execution TWAP, VWAP, Post-Only, Iceberg Strategies
11 Paper Simulator Simulation Realistic Fill Engine, Queue Position, Latency
12 Attribution Feedback Brinson Model (Allocation + Selection + Interaction)
13 Learning Feedback Online EMA Weight Updates, Model Versioning
14 Watchdog Monitor Heartbeat Tracking, Latency Anomaly Detection
15 Technical Analysis Signal (voting) Multi-Timeframe Confluence (6 TFs), 8+ Patterns

Fincept Strategic Committee: Agents 16–33

These 18 AI personas are powered by your configured LLM (Qwen, GPT-4, Claude, etc.). They run as a single batched API call every 5 minutes and their votes are injected into the Orchestrator alongside core agents.

# Persona Category Philosophy
16 Warren Buffett Investor Value investing, economic moats, margin of safety
17 Benjamin Graham Investor Deep value, net-net, quantitative screens
18 Peter Lynch Investor GARP, tenbaggers, invest in what you know
19 Charlie Munger Investor Mental models, inversion, quality at fair price
20 George Soros Trader Reflexivity, macro, boom-bust cycles
21 Ray Dalio Trader All-weather, risk parity, economic machine
22 Jim Simons Trader Quantitative, statistical arbitrage, patterns
23 Stanley Druckenmiller Trader Top-down macro, concentration, liquidity flows
24 Seth Klarman Investor Margin of safety, capital preservation
25 Howard Marks Investor Market cycles, second-level thinking
26 Bill Ackman Trader Activist, catalyst-driven, event-driven
27 Cathie Wood Investor Disruptive innovation, Wright's Law, S-curves
28 Fed Analyst Economic Monetary policy, interest rates, yield curve
29 Macro Strategist Economic GDP, inflation, employment, global trade
30 Credit Analyst Economic Bond markets, credit spreads, default risk
31 Geopolitics Analyst Geopolitics Political risk, sanctions, trade wars
32 Energy Analyst Geopolitics Oil/gas, OPEC, mining economics
33 China Watcher Geopolitics Chinese economy, PBOC, US-China relations

How it works: The FinceptCommitteeAgent sends a single prompt to the LLM asking it to role-play all 18 personas simultaneously. Each persona returns a direction (+1/βˆ’1/0), confidence (0–1), and reasoning. Results are cached for 5 minutes and fed into the Orchestrator's weighted voting system.


πŸ”¬ Fincept Lab Integration

Screenshot 2026-04-25 at 19 00 41

The Fincept Lab tab in the dashboard provides four sub-panels:

1. AI Investor Agents

Grid view of all 18 personas with live portfolio context. Click any agent to see their individual analysis using your LLM provider.

2. QuantLib Suite

REST proxy to api.fincept.in β€” access 590+ quantitative endpoints:

  • Risk: Value at Risk (VaR), Expected Shortfall, GARCH
  • Pricing: Black-Scholes, Binomial Trees, Monte Carlo
  • Portfolio: Markowitz Optimization, Risk Parity
  • Fixed Income: Bond Pricing, Duration, Yield Curves

3. Market Intelligence

Aggregated real-time market data:

  • Fear & Greed Index
  • CoinGecko crypto pricing
  • Portfolio metrics (NAV, PnL, Win Rate)

4. Risk Analytics

  • Parametric VaR Calculator
  • Stress Testing Scenarios
  • Drawdown Analysis

πŸ’° Dynamic Margin Engine

Position sizing is confidence-adaptive β€” the system allocates more capital when agents strongly agree, and less when signals are weak.

Composite Confidence β†’ Margin Allocation
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  < 0.30  (Low)       β†’  ~10% of NAV  ($12 minimum floor)
  0.30–0.60 (Medium)  β†’  15–30% of NAV
  0.60–0.80 (High)    β†’  30–45% of NAV
  > 0.80  (Very High) β†’  45–60% of NAV (capped)

Formula: marginPct = min(0.60, 0.10 + compositeConfidence Γ— 0.625)

Leverage is always fixed at the user-configured value (e.g., 20x). It is hard-clamped to max_leverage as a safety net β€” the 50x leverage bug has been permanently fixed.


πŸ“‘ Model Context Protocol (MCP)

Screenshot 2026-04-25 at 18 59 05

The system uses MCP to decouple data acquisition from strategy logic:

Server Purpose Default URL
News Sentiment Real-time crypto news + sentiment Custom
Orderbook Analyzer L2 book analytics, imbalance Custom
Technical Analyzer 20+ indicators (RSI, EMA, BB) technical-analyzer-mcp.*.workers.dev
Signal Generator Unified alpha signal aggregation signal-generator-mcp.*.workers.dev
Hyperliquid Trader Exchange API interface hyperliquid-trader-mcp.*.workers.dev
Performance Tracker Historical PnL + metrics performance-tracker-mcp.*.workers.dev

πŸ–₯ Dashboard Views

Tab Description
Mission Control Agent consensus bars, open positions, equity curve, risk status, decision log
Agent Theater Full 33-agent grid with confidence, direction, role, and per-agent details
Fincept Lab AI personas, QuantLib explorer, market intelligence, risk analytics
MCP Monitor Server health, latency graphs, ping testing, activity log
Trade History Complete trade log with entry/exit prices, PnL, hold time, regime
Settings Capital, leverage, risk limits, LLM config, scalping presets, DB reset

Scalping Intensity Presets

Mode Leverage Threshold Min Agreement Kelly
LOW (Conservative) 5x 0.30 3 0.10
MEDIUM (Balanced) 10x 0.20 2 0.25
HIGH (HF) 20x 0.15 2 0.50
AGGRESSIVE (Max) 20x 0.10 1 1.00

πŸ”Œ API Endpoints

System Control

Method Path Description
POST /system/start Start auto-cycling
POST /system/stop Stop auto-cycling
POST /system/run-cycle Run single trading cycle
POST /system/emergency-halt Emergency halt β€” close all positions
GET /system/status System running state

Settings

Method Path Description
GET/POST /settings Get/save system settings (auto-resets portfolio on capital change)
POST /settings/mode Switch paper/live mode
POST /settings/agent Toggle/weight individual agents
GET/POST /settings/llm LLM configuration (API key masked on GET)
POST /settings/llm/test Test LLM connection
POST /settings/reset Full database reset

Trading

Method Path Description
GET /positions Open positions (with live mark-to-market)
POST /positions/:id/close Close specific position
POST /paper/open Manually open paper position
GET /paper/pnl NAV, cash, realized PnL, win rate
GET /paper/history Trade history (last 100)
POST /paper/reset Reset portfolio to initial capital

Analytics

Method Path Description
GET /agents/status All agent outputs, reasoning, decision
GET /equity-curve Equity curve data (last 500 points)
GET /decision-log Orchestrator decision history
GET /risk/current Current risk metrics
GET /performance Sharpe, Sortino, win rate, profit factor

Fincept Lab

Method Path Description
POST /fincept/quantlib/* Proxy to QuantLib API (590+ endpoints)
GET /fincept/quantlib/* Proxy to QuantLib API (GET)
POST /fincept/agents/analyze Single agent persona analysis
GET /fincept/market-intel Aggregated market intelligence

MCP Monitor

Method Path Description
GET /mcp/status All MCP server statuses
POST /mcp/ping Ping specific MCP server
GET /mcp/log MCP activity log

πŸ”„ Workflow

1. MARKET SNAPSHOT
   └─ MCP Bridge fetches Price, Orderbook, News, Volatility data

2. AGENT ANALYSIS (Every Cycle)
   β”œβ”€ 6 Core Voting Agents compute signals (instant, pure math)
   β”œβ”€ 18 Fincept Personas provide AI opinions (cached 5 min)
   β”œβ”€ Quant Engine calculates risk, sizing, Kelly
   └─ Execution Agent selects optimal strategy

3. ORCHESTRATOR CONSENSUS
   β”œβ”€ Weighted sum of all agent signals
   β”œβ”€ composite_confidence > threshold? βœ“
   β”œβ”€ agreement_count β‰₯ min_agents? βœ“
   β”œβ”€ Risk Agent VETO check? βœ“
   β”œβ”€ TA Price Action VETO check? βœ“
   └─ Regime + MTF gates passed? βœ“ β†’ TRADE APPROVED

4. DYNAMIC MARGIN SIZING
   └─ $12 min ──── scales by confidence ──── 60% NAV max

5. EXECUTION
   β”œβ”€ Paper Mode: Realistic fill simulation
   └─ Live Mode: Hyperliquid API execution

6. FEEDBACK & LEARNING
   β”œβ”€ Attribution decomposes PnL sources
   β”œβ”€ Learning Agent updates signal weights
   └─ Watchdog monitors system health

βš™οΈ Installation & Setup

Screenshot 2026-04-25 at 19 01 10

Prerequisites

1. Clone & Install

git clone https://github.com/Adefebrian/Quantrader.git
cd Quantrader
npm install

2. Backend (Cloudflare Worker)

cd workers/api-gateway
npm install

# Initialize D1 Database
npx wrangler d1 create trading-db

# Local development
npx wrangler dev

# Production deploy
npx wrangler deploy

3. Frontend (React + Vite)

cd frontend
npm install

# Local development (opens on http://localhost:5173)
npm run dev

# Production build
npm run build

4. Configure LLM

  1. Open the dashboard β†’ Settings tab
  2. Select your LLM provider (recommended: Qwen via Alibaba DashScope)
  3. Enter your API key
  4. Click Test Connection β†’ Save

Recommended LLM for cost-efficiency:

Provider: Qwen (Alibaba DashScope)
Model:    qwen-max-2025-01-25
Base URL: https://dashscope-intl.aliyuncs.com/compatible-mode/v1

πŸ›  Configuration

All configurations are managed via the Settings tab:

Capital & Execution

  • Initial Capital ($): Starting NAV for paper trading (auto-resets portfolio on change)
  • Default Leverage: Fixed leverage for all positions (hard-clamped to max)
  • Consensus Threshold: Minimum composite score to approve a trade
  • Min Agent Agreement: How many agents must agree on direction
  • Kelly Fraction: Position sizing aggressiveness (0.1 = conservative, 1.0 = full Kelly)

Risk Limits (%)

  • DD Daily Halt/Stop: Drawdown thresholds for pausing/stopping
  • DD Total: Maximum total drawdown before emergency halt
  • VaR 95% Daily: Value at Risk limit
  • Max Single/Corr Exposure: Position concentration limits
  • Max Margin Utilization: How much of NAV can be used as margin

LLM Configuration

Supports any OpenAI-compatible API:

  • Alibaba Qwen (DashScope)
  • OpenAI (GPT-4o, GPT-4o-mini)
  • Anthropic (Claude Sonnet)
  • Google (Gemini Flash)
  • DeepSeek Chat
  • Custom endpoints (Ollama, OpenRouter, etc.)

Database Management

  • Reset Settings: Restore all settings to defaults
  • Reset Portfolio: Clear all positions and trade history
  • Full DB Reset: Nuclear option β€” wipes everything

🧰 Tech Stack

Layer Technology
Frontend React 18 + TypeScript + Vite
Styling Vanilla CSS (dark theme, glassmorphism)
Backend Cloudflare Workers (edge computing)
Database Cloudflare D1 (SQLite at the edge)
Real-time WebSocket (dashboard events)
AI/LLM Multi-provider (Qwen, OpenAI, Anthropic, Gemini, DeepSeek)
Quant API Fincept QuantLib (api.fincept.in)
Data MCP servers, Hyperliquid API, CoinGecko, Fear & Greed Index

πŸ“ Project Structure

hyperliquid-ai-trader/
β”œβ”€β”€ frontend/                       # React Dashboard
β”‚   └── src/
β”‚       β”œβ”€β”€ App.tsx                 # Main app (all 6 views)
β”‚       β”œβ”€β”€ index.css               # Design system + dark theme
β”‚       └── main.tsx                # Entry point
β”‚
β”œβ”€β”€ workers/api-gateway/            # Cloudflare Worker Backend
β”‚   └── src/
β”‚       β”œβ”€β”€ index.ts                # API Gateway (all endpoints)
β”‚       β”œβ”€β”€ agents/                 # 15 Core Agent implementations
β”‚       β”‚   β”œβ”€β”€ agent-01-regime.ts
β”‚       β”‚   β”œβ”€β”€ agent-02-alpha.ts
β”‚       β”‚   β”œβ”€β”€ agent-03-sentiment.ts
β”‚       β”‚   β”œβ”€β”€ agent-04-microstructure.ts
β”‚       β”‚   β”œβ”€β”€ agent-05-volatility.ts
β”‚       β”‚   β”œβ”€β”€ agent-06-statistics.ts
β”‚       β”‚   β”œβ”€β”€ agent-07-math.ts
β”‚       β”‚   β”œβ”€β”€ agent-08-risk.ts
β”‚       β”‚   β”œβ”€β”€ agent-09-portfolio.ts
β”‚       β”‚   β”œβ”€β”€ agent-10-execution.ts
β”‚       β”‚   β”œβ”€β”€ agent-12-attribution.ts
β”‚       β”‚   β”œβ”€β”€ agent-15-technical.ts
β”‚       β”‚   β”œβ”€β”€ agent-runner.ts     # Cycle orchestration
β”‚       β”‚   β”œβ”€β”€ orchestrator.ts     # Weighted consensus voting
β”‚       β”‚   β”œβ”€β”€ message-bus.ts      # Inter-agent messaging
β”‚       β”‚   └── types.ts            # All type definitions
β”‚       β”œβ”€β”€ fincept/                # Fincept Lab Integration
β”‚       β”‚   β”œβ”€β”€ investor-agents.ts  # 18 persona definitions
β”‚       β”‚   └── fincept-committee.ts # Batched LLM committee agent
β”‚       β”œβ”€β”€ mcp/                    # MCP Data Bridge
β”‚       β”‚   └── data-bridge.ts      # Market snapshot builder
β”‚       β”œβ”€β”€ paper/                  # Paper Trading Engine
β”‚       β”‚   └── portfolio.ts        # Position management + PnL
β”‚       └── utils/                  # Math & indicator libraries
β”‚           β”œβ”€β”€ math.ts             # Statistical functions
β”‚           └── indicators.ts       # Technical indicators
β”‚
β”œβ”€β”€ mcp-servers/                    # MCP Server implementations
β”œβ”€β”€ migrations/                     # D1 database migrations
β”œβ”€β”€ scripts/                        # Utility scripts
β”œβ”€β”€ FinceptTerminal-main/           # Fincept source (reference)
└── package.json

πŸ“„ License

This project is licensed under the MIT License β€” see the LICENSE file for details.


Developed with ❀️ by Brian (adefebrian.com)

About

AI Agent for trading in hyperliquid.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages