-
Notifications
You must be signed in to change notification settings - Fork 0
Copy Trading Service
Igor Sazonov edited this page Mar 9, 2026
·
1 revision
The CopyTradingService provides the functionality to engage in copy trading on the BingX platform, allowing you to automate your trading strategies by following other traders. This service supports both perpetual futures and spot markets.
To begin using the copy trading features, you must first access the CopyTradingService through your BingXClient instance:
from bingx import BingXClient
client = BingXClient(api_key="YOUR_API_KEY", api_secret="YOUR_API_SECRET")
copy_trading_service = client.copy_trading()The CopyTradingService is divided into two main sections, one for perpetual futures and one for the spot market.
These methods provide the tools to manage your copy trading activities in the perpetual futures market.
| Method | Description |
|---|---|
get_current_track_orders(symbol) |
Retrieves your current track orders. |
close_track_order(position_id) |
Closes a position by its order number. |
set_tpsl(position_id, ...) |
Sets the take profit and stop loss for a position. |
get_trader_detail() |
Retrieves your trader details. |
get_profit_summary() |
Retrieves your profit summary. |
set_commission(commission_rate) |
Sets your commission rate. |
These methods provide the functionality to manage your copy trading activities in the spot market.
| Method | Description |
|---|---|
sell_spot_order(buy_order_id) |
Sells a spot order based on the buy order ID. |
get_spot_trader_detail() |
Retrieves your spot trader details. |
get_spot_profit_summary() |
Retrieves your spot profit summary. |
get_spot_history_orders(...) |
Queries your historical spot orders. |