Back to work
Algorithmic Trading Bot - 1
Click to expand

Algorithmic Trading Bot

Production NestJS trading system on Binance USDM Futures with sub-50ms order execution

NestJSTypeScriptBinance APIWebSocketMongoDBRedis

Overview

A production-grade algorithmic trading system running on Binance USDM Futures. Handles real capital with atomic position state management, multi-level take-profit orders, trailing stop logic, and WebSocket-driven market data.

Key Features

  • Sub-50ms order execution via Binance REST and WebSocket APIs
  • Multi-level TP as individual reduceOnly LIMIT orders
  • Trailing stop and break-even logic triggered on kline close
  • Atomic OPEN→CLOSING→CLOSED MongoDB position state with claims
  • Fixed Binance -2022 bug from December 2025 algo order migration
  • Real-time P&L calculation and position monitoring

Status

Production (private)