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

Class TestMultiplex

tests/test_ws_urls_integration.py:179–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177
178
179class TestMultiplex:
180 def test_futures_multiplex_default_market(self, prod_client):
181 bsm = _make_bsm(prod_client)
182 sock = bsm.futures_multiplex_socket(["btcusdt@aggTrade", "ethusdt@aggTrade"])
183 assert (
184 _ws_url(sock)
185 == "wss://fstream.binance.com/market/stream?streams=btcusdt@aggTrade/ethusdt@aggTrade"
186 )
187
188 def test_futures_multiplex_public(self, prod_client):
189 bsm = _make_bsm(prod_client)
190 sock = bsm.futures_multiplex_socket(["btcusdt@depth10"], category="public")
191 assert (
192 _ws_url(sock)
193 == "wss://fstream.binance.com/public/stream?streams=btcusdt@depth10"
194 )
195
196
197# ---------------------------------------------------------------------------

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…