Fix Binance Futures API Integration

Замовник: AI | Опубліковано: 23.02.2026

The core of my FastAPI backend is already in place, yet the moment I swap from testnet to mainnet the Binance Futures connection collapses. Using python-binance I keep hitting connection failures on my local development server, so I need a seasoned backend developer who can track down and eliminate whatever is choking the handshake with mainnet and then harden the entire integration for production. What you will dive into • FastAPI project (Python 3.10) with dependency-injected services and async endpoints • python-binance for both REST and WebSocket streams • Redis for caching plus simple background worker queues Key objectives 1. Diagnose and fix the API connection failures that appear only when switching to mainnet. 2. Refactor or supplement the current retry / error-handling logic so the service can run 24 / 7 without manual restarts. 3. Validate order placement, market data retrieval and balance updates end-to-end. 4. Prepare the codebase for production: env-based configuration, logging, graceful shutdown, Dockerfile if needed, and concise README. Acceptance criteria • A stable mainnet connection that survives for 48 hours in a row on my machine. • All existing FastAPI routes return expected JSON with live data. • At least one successful live order opened and closed programmatically. • Clean, commented code committed to GitHub along with a short hand-over video or written walkthrough. If you’ve wrestled with Binance Futures before and can move fast, let’s get this over the finish line.