Skip to content

feat: Binance Exchange Integration - Spot/Futures Trading & Market Data#599

Open
zp6 wants to merge 2 commits into
Spectral-Finance:mainfrom
zp6:feature/binance-exchange-integration-84
Open

feat: Binance Exchange Integration - Spot/Futures Trading & Market Data#599
zp6 wants to merge 2 commits into
Spectral-Finance:mainfrom
zp6:feature/binance-exchange-integration-84

Conversation

@zp6
Copy link
Copy Markdown

@zp6 zp6 commented May 15, 2026

Binance Exchange Integration (Closes #84)

Implements comprehensive Binance exchange integration with support for spot trading, futures trading, market data, and WebSocket streaming.

Changes

Integration Layer

  • Lux.Integrations.Binance - Core configuration, HMAC-SHA256 signing, rate limiting
  • Lux.Integrations.Binance.Client - HTTP client with authenticated/unsigned requests

Lenses (Market Data)

  • TickerPriceLens - Fetch current prices for symbols
  • OrderBookLens - Order book depth with spread calculation
  • BalanceLens - Authenticated account balance queries

Prisms (Trading Actions)

  • CreateOrderPrism (Spot) - Place LIMIT, MARKET, STOP_LOSS orders
  • CancelOrderPrism (Spot) - Cancel active orders
  • CreateFuturesOrderPrism - Futures orders with leverage control
  • StreamManagerPrism - WebSocket connection management

Acceptance Criteria

  • REST API implementation
  • WebSocket integration
  • Spot trading system
  • Futures trading system
  • Order management features
  • Rate limit compliance

zp6 added 2 commits May 15, 2026 08:06
…ance#86)

- Add TradingView API client for chart data, indicators, and streaming
- Add ChartData lens for OHLCV candlestick retrieval with multi-timeframe support
- Add TechnicalIndicators lens for RSI, MACD, Bollinger Bands, etc.
- Add MultiTimeframeAnalysis lens for cross-timeframe signal confluence
- Add AlertManager prism for price/indicator alert CRUD operations
- Add SignalGenerator prism for buy/sell/hold signal generation with confidence scores
- Add StrategyBacktester prism for historical strategy simulation
- Add RealTimeDataStream prism for live market data subscriptions
- Add PineScriptExecutor prism for custom script execution
- Add comprehensive unit tests for all components
Implements comprehensive Binance exchange integration with:

- REST API client with HMAC-SHA256 authentication
- Spot trading: create/cancel orders (LIMIT, MARKET, STOP_LOSS, etc.)
- Futures trading: create orders with leverage control
- Market data lenses: ticker price, order book depth
- Account balance lens with authenticated endpoints
- WebSocket stream manager for real-time data
- Rate limiting and error handling
- Futures API support with separate endpoints

Closes Spectral-Finance#84
@zp6 zp6 mentioned this pull request May 15, 2026
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Binance Exchange Integration $750

1 participant