bingx-swap-ws-account

Maintain real-time BingX WebSocket streams for USDT-M swap account updates.

17|6|Updated Mar 6, 2026
One-click install
npx skills add https://github.com/BingX-API/api-ai-skills --skill bingx-swap-ws-account
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bingx-swap-ws-account
Source: https://github.com/BingX-API/api-ai-skills/tree/main/skills/swap-ws-account
Command: npx skills add https://github.com/BingX-API/api-ai-skills --skill bingx-swap-ws-account

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Real-time monitoring of BingX USDT-M perpetual swap accounts via WebSocket, eliminating the need for frequent polling.

Core Features & Use Cases

  • Auto-pushed event streams for ACCOUNT_UPDATE, ORDER_TRADE_UPDATE, and ACCOUNT_CONFIG_UPDATE.
  • Listen Key management: generate, extend, and delete listen keys for authenticated streams.
  • Use cases: monitor live balances and positions, track order status in real-time, and respond to leverage/margin changes.

Quick Start

Authenticate with your API key, obtain a listen key, and connect to the WebSocket to start receiving ACCOUNT_UPDATE and ORDER_TRADE_UPDATE events.

Frequently Asked Questions about bingx-swap-ws-account

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I get real-time BingX swap account updates without polling?

Real-time BingX swap account updates require establishing a WebSocket connection using a listen key. This approach delivers auto-pushed ACCOUNT_UPDATE and ORDER_TRADE_UPDATE events directly, replacing inefficient REST API polling for live decision making.

How do I manage BingX WebSocket listen keys for perpetual futures?

Managing BingX WebSocket listen keys involves generating, extending, and deleting them throughout the connection lifecycle. This Skill handles the complete listen-key lifecycle automatically to ensure resilient and authenticated stream connectivity for USDT-M perpetual futures.

Does this WebSocket stream monitor order status and leverage changes on BingX?

Yes, the WebSocket stream monitors order status and leverage changes on BingX. It captures ORDER_TRADE_UPDATE events for live order tracking and ACCOUNT_CONFIG_UPDATE events to respond to real-time leverage and margin modifications.

How does BingX handle gzip compression and heartbeats in WebSocket streams?

BingX WebSocket streams utilize gzip-compressed payload handling to minimize bandwidth and implement heartbeat mechanisms to maintain connectivity. These features ensure resilient data transmission for account and position updates.

What events are pushed during a BingX USDT-M perpetual account update?

During a BingX USDT-M perpetual account update, the stream pushes ACCOUNT_UPDATE, ORDER_TRADE_UPDATE, and ACCOUNT_CONFIG_UPDATE events. These auto-pushed streams allow users to monitor live balances, positions, and order statuses instantly.