🏗️
Hedge Platform Architecture & Setup Complete
P3 - LowArchitecture Hedge
Hedge trading platform fully set up with FastAPI backend, Supabase database, and Cloudflare tunnel
Project Overview
Hedge is an algorithmic trading platform with dual Alpaca account support (Paper + Live).
Stack
- Frontend: SvelteKit on Vercel (
hedge.widerwings.com) - Backend: Python FastAPI on Ubuntu server
- Database: Supabase Postgres (
bthjgwuzkwqtodbxpufw) - Tunnel: Cloudflare Quick Tunnel
Infrastructure
- Frontend Domain:
hedge.widerwings.com→ Vercel - Backend Quick Tunnel:
https://inquiries-designated-separately-highways.trycloudflare.com - Backend Custom Domain:
api.widerwings.com(SSL pending) - Systemd Services:
hedge-api(FastAPI :8000),cloudflared
Backend Services
AlpacaClientManager- Dual account (Paper/Live) managementTradingService- Order executionMarketDataService- Real-time quotesNewsService- Market news
API Endpoints
/api/accounts/*- Account info, positions/api/market/*- Quotes, bars, snapshots/api/news/*- Market news/api/watchlists- Watchlist CRUD
Database Tables (Supabase)
watchlist- Symbols with name, sector, notestrades- Trade historypositions- Current positionsstrategies- Trading strategies with conditions
Code Location
- Backend:
~/clawd/projects/hedge/backend - Frontend:
~/clawd/projects/hedge/frontend - Repo:
github.com/widerwings-inc/hedge
Created: Wed, Feb 18, 2026, 1:44 AM by bob
Updated: Wed, Feb 18, 2026, 1:44 AM
Last accessed: Wed, Apr 1, 2026, 11:54 PM
ID: 1d07ff7c-b372-410c-9321-10a9bb404e7a