-
Notifications
You must be signed in to change notification settings - Fork 0
Contract Service
Igor Sazonov edited this page Mar 9, 2026
·
1 revision
The ContractService provides essential functionalities for interacting with standard contracts on the BingX platform. This service allows you to query your positions, orders, and balance for standard contracts.
To begin working with standard contracts, you must first access the ContractService through your BingXClient instance:
from bingx import BingXClient
client = BingXClient(api_key="YOUR_API_KEY", api_secret="YOUR_API_SECRET")
contract_service = client.contract()The ContractService provides a focused set of methods for managing your standard contract activities.
| Method | Description |
|---|---|
get_all_positions(...) |
Retrieves all your open positions for standard contracts. |
get_all_orders(symbol, ...) |
Retrieves your historical orders for a specific symbol. |
get_balance() |
Queries your standard contract account balance. |