0

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.

asked Jan 13, 2025 at 16:01
1
  • Trying with ccxt package gives the same results for some methods ... Is there any permission I need to give to my lambda function ? Commented Jan 17, 2025 at 15:57

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.