Generate listenKey

Hey guys, I’m trying to generate my listenKey using the following example but I’m getting no result so far. binance-futures-connector-python/user_data.py at main · binance/binance-futures-connector-python · GitHub

I changed the following:
line 20: adding my api key & the base url= “https://api.binance.com/fapi/v1/listenKey
line 27: stream_url=“wss://fstream.binance.com”

My IDE returns Process finished with exit code 0

Thanks in advance for the help.

Add your API key on line 16 and stream_url goes on line 22 in the brackets. However try not adding a stream_url since it’s that URL by default. So just try adding your API key with the correct permissions to line 16 and then running the script.