python-binance
python-binance copied to clipboard
How to use websocket request with private key ?
I applied for an Ed25519 API key, but I don't know how to use this API key for websocket requests.
Hello @zhangk, you have several examples in the docs, but basically you just need to do:
api_key = "TwEW0XXXXXXXXXXXXXXXXXXXXXXXXXX" # your api_key here
privateKey = "-----BEGIN PRIVATE KEY-----\nMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n-----END PRIVATE KEY-----"
client = AsyncClient(api_key, private_key=privateKey)
This does not work for me. Could you please provide a full example? Can't get it running.
@PGSch What's your python-binance version?
1.0.28
@PGSch that's the latest, what's the issue exactly?