You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before submitting a new issue, please check if a similar issue has already been filed.
trying to get the current positions am having within flexible earn am getting the error message
AttributeError: 'Spot' object has no attribute 'get_flexible_product_position'
Using the example script is not working
import logging
from binance.spot import Spot as Client
from binance.lib.utils import config_logging
from binance.error import ClientError
Hey,
It appears there might be an issue with the naming of your credentials. The variable Secrect_Key does not match the one you added to the Client.
If the issue persists, please double-check that you have downloaded the correct library. Here's an example of how to install it: pip install binance-connector.
Before submitting a new issue, please check if a similar issue has already been filed.
trying to get the current positions am having within flexible earn am getting the error message
AttributeError: 'Spot' object has no attribute 'get_flexible_product_position'
Using the example script is not working
import logging
from binance.spot import Spot as Client
from binance.lib.utils import config_logging
from binance.error import ClientError
API_key = "XXXXXXXXX"
Secrect_Key = "XXXXXXXX"
config_logging(logging, logging.DEBUG)
logger = logging.getLogger(name)
client = Client(API_key,Secret_Key )
try:
response = client.get_flexible_product_position(
current=1, size=100, recvWindow=5000
)
logger.info(response)
except ClientError as error:
logger.error(
"Found error. status: {}, error code: {}, error message: {}".format(
error.status_code, error.error_code, error.error_message
)
)
The text was updated successfully, but these errors were encountered: