From 46515a459d5a74f6743d264c6ae84a4ac7cabaf0 Mon Sep 17 00:00:00 2001 From: soundsonacid Date: Fri, 19 Jan 2024 09:28:36 -0800 Subject: [PATCH] fix --- source/includes/_orderbook_blockchain.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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