Skip to content

Services

Igor Sazonov edited this page Mar 9, 2026 · 1 revision

The BingX Python SDK is designed with a modular and intuitive architecture, organized into a collection of services. Each service corresponds to a specific area of the BingX API, providing a clean and logical way to access different functionalities.

Accessing Services

All services are accessible as methods on the BingXClient instance. This design pattern makes it easy to discover and use the various features of the SDK.

from bingx import BingXClient

# Initialize the client
client = BingXClient(api_key="YOUR_API_KEY", api_secret="YOUR_API_SECRET")

# Access the MarketService
market_service = client.market()

# Call a method on the service to get the latest price
price_data = market_service.get_latest_price("BTC-USDT")

Available Services

The following table provides an overview of the services available in the SDK. Each service is linked to its detailed documentation page, where you can find a comprehensive list of its methods and usage examples.

Service Description
Market Service Provides access to a wide range of market data, including prices, order book depth, and candlestick data.
Account Service Manages account-related operations, such as retrieving your balance, managing positions, and setting leverage.
Trade Service Handles all trading operations, including creating, canceling, and querying orders.
Wallet Service Manages wallet operations, such as deposits, withdrawals, and retrieving your wallet address.
Sub-Account Service Provides a comprehensive set of tools for managing sub-accounts.
Copy Trading Service Implements the functionality for automated copy trading for both perpetual futures and spot markets.
Contract Service Handles operations related to standard contracts.
Listen Key Service Manages listen keys, which are required for authenticating with the private WebSocket streams.
Coin-M Futures A dedicated client for interacting with Coin-M perpetual futures, which are crypto-margined contracts.

Clone this wiki locally