arbitrage-engine/frontend
fanziqi ad60a53262 review: add code audit annotations and REVIEW.md for v5.1
P0 issues annotated (critical, must fix before live trading):
- signal_engine.py: cooldown blocks reverse-signal position close
- paper_monitor.py + signal_engine.py: pnl_r 2x inflated for TP scenarios
- signal_engine.py: entry price uses 30min VWAP instead of real-time price
- paper_monitor.py + signal_engine.py: concurrent write race on paper_trades

P1 issues annotated (long-term stability):
- db.py: ensure_partitions uses timedelta(30d) causing missed monthly partitions
- signal_engine.py: float precision drift in buy_vol/sell_vol accumulation
- market_data_collector.py: single bare connection with no reconnect logic
- db.py: get_sync_pool initialization not thread-safe
- signal_engine.py: recent_large_trades deque has no maxlen

P2/P3 issues annotated across backend and frontend:
- coinbase_premium KeyError for XRP/SOL symbols
- liquidation_collector: redundant elif condition in aggregation logic
- auth.py: JWT secret hardcoded default, login rate-limit absent
- Frontend: concurrent refresh token race, AuthContext not synced on failure
- Frontend: universal catch{} swallows all API errors silently
- Frontend: serial API requests in LatestSignals, market-indicators over-polling

docs/REVIEW.md: comprehensive audit report with all 34 issues (P0×4, P1×5,
P2×6, P3×4 backend + FE-P1×4, FE-P2×8, FE-P3×3 frontend), fix suggestions
and prioritized remediation roadmap.
2026-03-01 17:14:52 +08:00
..
app review: add code audit annotations and REVIEW.md for v5.1 2026-03-01 17:14:52 +08:00
components feat: paper trading - backend (table+signal_engine integration+5 APIs) + frontend page 2026-02-28 11:10:28 +00:00
lib review: add code audit annotations and REVIEW.md for v5.1 2026-03-01 17:14:52 +08:00
public feat: arbitrage engine Phase 0 scaffold - FastAPI + Next.js 2026-02-26 12:06:10 +00:00
.gitignore feat: arbitrage engine Phase 0 scaffold - FastAPI + Next.js 2026-02-26 12:06:10 +00:00
eslint.config.mjs feat: arbitrage engine Phase 0 scaffold - FastAPI + Next.js 2026-02-26 12:06:10 +00:00
next.config.ts fix: disable api cache for real-time data 2026-02-26 12:59:01 +00:00
package-lock.json feat: arbitrage engine Phase 0 scaffold - FastAPI + Next.js 2026-02-26 12:06:10 +00:00
package.json feat: kline page with lightweight-charts + /api/kline OHLC aggregation endpoint 2026-02-27 06:36:19 +00:00
postcss.config.mjs feat: arbitrage engine Phase 0 scaffold - FastAPI + Next.js 2026-02-26 12:06:10 +00:00
README.md feat: arbitrage engine Phase 0 scaffold - FastAPI + Next.js 2026-02-26 12:06:10 +00:00
tsconfig.json feat: arbitrage engine Phase 0 scaffold - FastAPI + Next.js 2026-02-26 12:06:10 +00:00

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.