Open source Free real-time data tier

The missing-middle starter for Alpaca-powered market data apps.

Alpaca API Wrapper spins up Django models that auto-sync market candles, a TradingView-style React UI, and Dockerized services for streaming, aggregation, and caching. Bring a free Alpaca key (up to 30 assets) and start building research tools, dashboards, or trading ideas today.

Django models with live candle sync
TradingView-style React dashboard
Docker + NX orchestration in one command
Stack snapshot
  • Self-contained backend

    Django REST API, Channels WebSocket ingestion, Celery workers, Redis, and PostgreSQL behind Docker Compose.

  • Trading-ready frontend

    Vite + React with TradingView charting, watchlists, and real-time visuals powered by RTK Query.

  • Free-tier friendly

    Streams up to 30 symbols on Alpaca's free key, with resilience, resubscribe logic, and cached aggregates.

Quick start:

npm run dev

Launches React locally and Docker containers for Django, Postgres, Redis, WebSocket, Celery, and Flower.

Why we built it

Working with live markets usually means tiny tutorials that end at a single fetch, or massive frameworks that dictate how you trade. Alpaca API Wrapper sits in the missing middle-a production-grade foundation that you can understand in an afternoon and extend for research, analytics, or algorithmic experiments.

  • Lower the barrier: plug in a free Alpaca API key, pick up to 30 symbols, and the stack handles streaming, storage, and aggregation.
  • Stay flexible: iterate on strategies, dashboards, or APIs without fighting rigid abstractions or paid platforms.
  • Own your data loop: query rich Django models, run Celery tasks, and ship features without reinventing infra.

Watchlists & symbol control

Create and manage watchlists without leaving the UI. Store them in Django, sync with Alpaca, and keep everything ready for research or automation.

Real-time candle pipeline

WebSocket ingestion builds 1-minute candles on the fly while Celery resamples into 5m, 15m, 1h, 4h, and daily intervals. Reconnect logic keeps feeds resilient.

Paper trading loop

Experiment with mock orders, visualize P/L instantly, and wire Celery tasks for alerts or strategy execution without touching production capital.

Infrastructure highlights

Docker Compose stack

Backend ASGI app, Celery worker + beat, WebSocket service, Postgres, Redis, nginx-ready configs, and Flower monitoring.

Extendable backend APIs

Prebuilt models for assets, candles, watchlists, and paper trades-ready for new endpoints, scripts, or notebooks.

Ops-ready diagnostics

Health checks warm services in the background, and multitail-friendly logs keep ingestion, workers, and schedulers observable.