Crypto Trading

ARB Scanner

A Telegram bot for real-time monitoring of arbitrage spreads and funding rates across 5 crypto exchanges. Automated paired trading (long on one exchange, short on another), funding scalping, and alert system. Freemium model with subscriptions.

Timeline: 1.5 months
Year: 2026
ARB Scanner
0K
lines of code
0
exchanges
0
workers
0
data models

Challenge

The client needed a Telegram bot for tracking cross-exchange crypto arbitrage opportunities in real time. Key requirements: WebSocket streaming from 5 exchanges simultaneously, spread calculation with 5-second refresh, automated paired trade execution via users' API keys, funding scalping with three modes, and a scalable architecture for hundreds of concurrent connections.

Solution

Built a bot on aiogram 3 with 7 background workers: data collector (WebSocket from 5 exchanges via ccxt), spread calculator (materialized view, 5s refresh), arb position monitor, auto-scanner for trade entry, funding trader with 3 modes (SKIP/MOMENTUM/COUNTER). Dual DB pool: asyncpg for high-throughput UPSERT and SQLAlchemy for reads. 13 data models, Free/Premium subscription system with feature gating.

Python aiogram 3 PostgreSQL Redis ccxt WebSocket pandas matplotlib Alembic

Your project.
Our next case study.

Tell us the challenge - we'll show you how it turns into a case with real numbers.

Start a project