Skip to content

Commit 1719ef5

Browse files
committed
(fix) Added back a function that was removed by mistake
1 parent fa5e91b commit 1719ef5

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

pyinjective/async_client.py

+14
Original file line numberDiff line numberDiff line change
@@ -1539,6 +1539,20 @@ async def listen_spot_orderbook_snapshots(
15391539
on_status_callback=on_status_callback,
15401540
)
15411541

1542+
async def listen_spot_orderbook_updates(
1543+
self,
1544+
market_ids: List[str],
1545+
callback: Callable,
1546+
on_end_callback: Optional[Callable] = None,
1547+
on_status_callback: Optional[Callable] = None,
1548+
):
1549+
await self.exchange_spot_stream_api.stream_orderbook_update(
1550+
market_ids=market_ids,
1551+
callback=callback,
1552+
on_end_callback=on_end_callback,
1553+
on_status_callback=on_status_callback,
1554+
)
1555+
15421556
async def listen_spot_orders_updates(
15431557
self,
15441558
callback: Callable,

0 commit comments

Comments
 (0)