Listenkey for futures

Hi , Im new to binance api . I would like to know how to create a listen key for futures and how to get ask and bid last prices .

I followed the documentation
but when I run this :“”)
I get this error
{“code”:-2014,“msg”:“API-key format invalid.”}

hank you in advance

The api key should be set in the request header.

You may have a try with this python connector. GitHub - binance/binance-connector-python: a simple connector to Binance Public API

Thank uuu It’s solved !

this has helped me to solve it :slight_smile: