User Data Streams Connect
-
The base API endpoint is: https://papi.binance.com
-
A User Data Stream
listenKey
is valid for 60 minutes after creation. -
Doing a
PUT
on alistenKey
will extend its validity for 60 minutes, if response-1125
error "This listenKey does not exist." Please usePOST /fapi/v1/listenKey
to recreatelistenKey
. -
Doing a
DELETE
on alistenKey
will close the stream and invalidate thelistenKey
. -
Doing a
POST
on an account with an activelistenKey
will return the currently activelistenKey
and extend its validity for 60 minutes. *Connection method for Websocket:- Base Url: wss://fstream.binance.com/pm
- User Data Streams are accessed at /ws/<listenKey>
- Example:
wss://fstream.binance.com/pm/ws/pqia91ma19a5s61cv6a81va65sdf19v8a65a1a5s61cv6a81va65sdf19v8a65a1
-
For one connection(one user data), the user data stream payloads can guaranteed to be in order during heavy periods; Strongly recommend you order your updates using E
-
A single connection is only valid for 24 hours; expect to be disconnected at the 24 hour mark