File size: 2,034 Bytes
714fedb
981a2a2
 
 
 
714fedb
81d5a2e
714fedb
 
 
981a2a2
81d5a2e
981a2a2
81d5a2e
 
 
981a2a2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
81d5a2e
 
 
981a2a2
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
title: Solana Quant Hedge Fund
emoji: ⚡
colorFrom: purple
colorTo: green
sdk: docker
app_port: 7860
pinned: false
---

# ⚡ Solana Quant Hedge Fund & Local Small AI

An autonomous quantitative hedge fund platform and high-speed local AI copilot on Solana, engineered for Docker on Hugging Face Spaces.

## 🚀 Features

- **Autonomous Solana Quant Engine**:
  - Real-time asset monitoring ($SOL, $JUP, $RAY, $WIF, $BONK).
  - Cross-DEX arbitrage scanner across Raydium CPMM, Orca Whirlpools, and Meteora DLMM.
  - Active portfolio & AUM tracker ($14.25M simulated AUM) with 24h PnL and Sharpe ratio analytics.
  - Instant trade order dispatcher with simulated Jupiter Swap execution.
- **Fast Local CPU Quant Copilot**:
  - Powered by `Qwen/Qwen2.5-0.5B-Instruct` (494M parameters).
  - Runs with high token throughput on CPU without GPU dependencies or out-of-memory bottlenecks.
  - Server-Sent Events (SSE) token-by-token live streaming analysis.
- **Persistent Volume Storage**:
  - Direct integration with persistent storage volume mounted at `/data`.
  - Archival of blotter trades in `/data/trades/trades.json`.
  - Storage browser to inspect files and volume capacity.
- **Minimalist & Bold Interface**:
  - Obsidian dark aesthetic (`#060608`) with Solana purple (`#9945FF`) and electric green (`#14F195`) accents.
  - Ticker strips, arbitrage monitors, trade dispatchers, and live AI terminal.

## 📦 API Endpoints

- `GET /` — Minimalist & bold hedge fund dashboard.
- `GET /docs` — Interactive OpenAPI / Swagger UI.
- `GET /api/health` — System health and storage volume path.
- `GET /api/market` — Real-time prices, portfolio overview, and DEX arbitrage spreads.
- `GET /api/trades` — Trade blotter and execution logs.
- `POST /api/trades/execute` — Execute a DEX trade on Solana.
- `GET /api/ai/status` — Model loading state, thread count, and CPU device metrics.
- `POST /api/ai/analyze` — Real-time SSE streaming quant analysis.
- `GET /api/storage/files` — Persistent volume file manager.