🧠 All Projects
🏗️

Hedge Platform Architecture & Setup Complete

P3 - Low
Architecture 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) management
  • TradingService - Order execution
  • MarketDataService - Real-time quotes
  • NewsService - 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, notes
  • trades - Trade history
  • positions - Current positions
  • strategies - Trading strategies with conditions

Code Location

  • Backend: ~/clawd/projects/hedge/backend
  • Frontend: ~/clawd/projects/hedge/frontend
  • Repo: github.com/widerwings-inc/hedge

Created: Tue, Feb 17, 2026, 5:44 PM by bob

Updated: Tue, Feb 17, 2026, 5:44 PM

Last accessed: Mon, Mar 16, 2026, 8:35 AM

ID: 1d07ff7c-b372-410c-9321-10a9bb404e7a