Optional symbol Parameter Not Supported in positions Function
I've encountered an issue with the positions function in the bingX-connector-python package. The BingX API documentation for the GET /openApi/swap/v2/user/positions endpoint indicates that the symbol parameter is optional. However, in the Python package, the positions function requires this parameter to be provided, which limits its functionality compared to the API.
Environment:
Python version: Python 3.11.5 Package version: bingX-connector==0.0.7
Steps to Reproduce:
Attempt to call the positions function without providing a symbol parameter. Observe that the function does not allow this and requires a symbol to be specified.
Expected Behavior: The positions function should allow users to call the endpoint without specifying a symbol, thereby returning positions for all trading pairs, as supported by the BingX API.
Actual Behavior:
The function currently requires a symbol parameter, which is not aligned with the API's flexibility.
Code Snippet:
positions_data = bingX_client.perpetual.v2.account.positions()
# This raises an error or requires a symbol parameter
Potential Solution: Modify the positions function in the account.py file to make the symbol parameter optional. This would align the package's functionality with the BingX API's capabilities.
Additional Context: The BingX API documentation (link: BingX API - Perpetual Swap Positions) specifies that the symbol parameter is not required for the GET /openApi/swap/v2/user/positions endpoint.