diff --git a/source/includes/_orderbook_blockchain.md b/source/includes/_orderbook_blockchain.md index 5507f17..5f80478 100644 --- a/source/includes/_orderbook_blockchain.md +++ b/source/includes/_orderbook_blockchain.md @@ -155,13 +155,13 @@ await dlobSubscriber.subscribe(); ```python -from driftpy.dlob.dlob_client import DLOBClient +from driftpy.dlob.dlob_subscriber import DLOBSubscriber from driftpy.dlob.client_types import DLOBClientConfig config = DLOBClientConfig(drift_client, user_map, slot_subscriber, 1_000) -dlob_client = DLOBClient(config = config) +dlob_subscriber = DLOBSubscriber(config = config) -await dlob_client.subscribe() +await dlob_subscriber.subscribe() ``` ### Python @@ -193,7 +193,7 @@ const l2 = dlobSubscriber.getL2({ | fallbackL2Generators | L2OrderbookGenerators for fallback liquidity e.g. vAmm, openbook, phoenix. Unnecessary if includeVamm is true | Yes | | ```python -l2 = dlob_client.get_l2_orderbook_sync("SOL-PERP") +l2 = dlob_subscriber.get_l2_orderbook_sync("SOL-PERP") ``` ### Python