| 177 | |
| 178 | |
| 179 | class 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 | # --------------------------------------------------------------------------- |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…