MCPcopy Create free account
hub / github.com/sammchardy/python-binance / isolated_margin_stream_close

Method isolated_margin_stream_close

binance/async_client.py:1536–1548  ·  view source on GitHub ↗
(self, symbol, listenKey)

Source from the content-addressed store, hash-verified

1534 isolated_margin_stream_keepalive.__doc__ = Client.isolated_margin_stream_keepalive.__doc__
1535
1536 async def isolated_margin_stream_close(self, symbol, listenKey):
1537 warnings.warn(
1538 "DELETE /sapi/v1/userDataStream/isolated is deprecated and will be removed on 2026-02-20. "
1539 "Use the WebSocket API subscription method instead (create listenToken via POST /sapi/v1/userListenToken "
1540 "with isIsolated=true, then subscribe with userDataStream.subscribe.listenToken). "
1541 "The isolated_margin_socket() method now uses WebSocket API by default.",
1542 DeprecationWarning,
1543 stacklevel=2
1544 )
1545 params = {"symbol": symbol, "listenKey": listenKey}
1546 return await self._request_margin_api(
1547 "delete", "userDataStream/isolated", signed=False, data=params
1548 )
1549
1550 # Simple Earn Endpoints
1551

Callers

nothing calls this directly

Calls 1

_request_margin_apiMethod · 0.95

Tested by

no test coverage detected