backoption.io - Trading Platform

Imagem personagem

Technologies

JavaScript 60% React 30% TailwindCSS 10%

Topics

trading websockets lightweight-charts react i18n avalon-sdk

Developed the backend and real-time pipeline for backoption.io, a binary options trading platform operating with high-frequency data and millisecond latency. The system consumes and distributes quotes using persistent WebSocket connections (Socket.IO and ws) integrated directly with the broker API via the Quadcode Client SDK.

To protect the system against financial feed outages, I designed the ShieldService, a redundant bus that performs dynamic failover to Finnhub's Websocket API and runs REST Safety Polling routines. On weekends, the engine triggers the OTC Pacer to simulate price ticks in memory, preserving chart responsiveness. Platform accounting uses double-entry ledger bookkeeping (LedgerEntry) to prevent balance tampering, and features idempotent webhooks for PIX deposits (DigitoPay) to avoid duplicate credits.

Access the online demo and examine the stability of the WebSocket connections in the backend repository.

Technical Highlights

Real-Time WebSockets

Bidirectional persistent WebSocket connections (ws and Socket.IO) integrated with the Quadcode SDK to stream quotes with sub-second millisecond latency.

Redundancy (ShieldService)

Intelligent failover bus that automatically redirects quote feeds to backup API (Finnhub) and performs REST Safety Polling during network instability.

OTC Pacer Engine

Dynamic tick emulator running in memory cache that outputs high-fidelity synthetic prices during weekend market closure, preserving chart reactivity.

Ledger & PIX Integrations

Immutable transactional layer using double-entry bookkeeping (LedgerEntry) to secure wallet balances and idempotent webhook processing for PIX deposits.