I am currently working on implementing an AWS Lambda function that interacts with Binance to analyze prices. I successfully installed the python-binance package on my Lambda function.
While the function can perform various operations on Binance, such as get_klines and execute_order, I am encountering an issue with the get_symbol_info method. Specifically, when I call this method, it never returns, and the Lambda function eventually times out.
I have tried increasing the timeout value, but the function remains stuck regardless of the value. I also tested this with multiple runtime versions, including Python 3.9 and Python 3.13.
The method call is wrapped in try/except blocks, but no exception is raised. It simply does not return (I confirmed this by adding logs immediately before and after the call). Interestingly, the same function call works perfectly on my local machine.
Has anyone successfully used the get_symbol_info method in an AWS Lambda context? Or has anyone experienced a similar issue?
Thank you.
-
Trying with ccxt package gives the same results for some methods ... Is there any permission I need to give to my lambda function ?Maxence Francois– Maxence Francois2025年01月17日 15:57:51 +00:00Commented Jan 17, 2025 at 15:57