Data Stream Endpoints
Create a ListenKey (USER_STREAM)
- new_listen_key(self)
Create a ListenKey (USER_STREAM)
POST /api/v3/userDataStream
Ping/Keep-alive a ListenKey (USER_STREAM)
- renew_listen_key(self, listenKey: str)
Ping/Keep-alive a ListenKey (USER_STREAM)
PUT /api/v3/userDataStream
- Parameters:
listenKey (str)
Close a ListenKey (USER_STREAM)
- close_listen_key(self, listenKey: str)
Close a ListenKey (USER_STREAM)
DELETE /api/v3/userDataStream
- Parameters:
listenKey (str)
Create a margin ListenKey (USER_STREAM)
- new_margin_listen_key(self)
Create a margin ListenKey (USER_STREAM)
POST /sapi/v1/userDataStream
https://developers.binance.com/docs/margin_trading/trade-data-stream/Start-Margin-User-Data-Stream
Renew a margin ListenKey (USER_STREAM)
- renew_margin_listen_key(self, listenKey: str)
Renew a margin ListenKey (USER_STREAM)
PUT /sapi/v1/userDataStream
- Parameters:
listenKey (str)
Close a margin ListenKey (USER_STREAM)
- close_margin_listen_key(self, listenKey: str)
Close a margin ListenKey (USER_STREAM)
DELETE /sapi/v1/userDataStream
https://developers.binance.com/docs/margin_trading/trade-data-stream/Close-Margin-User-Data-Stream
- Parameters:
listenKey (str)
Create an isolated margin ListenKey (USER_STREAM)
- new_isolated_margin_listen_key(self, symbol: str)
Create an isolated margin ListenKey (USER_STREAM)
POST /sapi/v1/userDataStream/isolated
- Parameters:
symbol (str)
Renew an isolated ListenKey (USER_STREAM)
- renew_isolated_margin_listen_key(self, listenKey: str, symbol: str)
Renew an isolated ListenKey (USER_STREAM)
PUT /sapi/v1/userDataStream/isolated
- Parameters:
listenKey (str)
symbol (str)
Close an isolated margin ListenKey (USER_STREAM)
- close_isolated_margin_listen_key(self, listenKey: str, symbol: str)
Close an isolated margin ListenKey (USER_STREAM)
DELETE /sapi/v1/userDataStream/isolated
- Parameters:
listenKey (str)
symbol (str)