From 87b0c8d7a269d057a03a5b3f4aefc4f69d4f7c20 Mon Sep 17 00:00:00 2001 From: JKorf Date: Fri, 2 Aug 2024 13:28:42 +0200 Subject: [PATCH] Docs --- docs/index.html | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/docs/index.html b/docs/index.html index 61ac731..7987231 100644 --- a/docs/index.html +++ b/docs/index.html @@ -2072,7 +2072,10 @@ var client = new OKXRestClient();
-
+
+
// Assuming IExchangeOrderBookFactory is injected as bookFactoryClient
+var book = bookFactoryClient.Binance.Spot.Create("ETH", "USDT");
+var startResult = await book.StartAsync();
+if (!startResult.Success)
+{
+    // Handle error, error info available in startResult.Error
+}
+// Book has successfully started and synchronized
+
+// Once no longer needed you can stop the live sync functionality by calling StopAsync()
+await book.StopAsync();
+
+
+
var book = new BinanceSpotSymbolOrderBook("ETHUSDT");
 var startResult = await book.StartAsync();
 if (!startResult.Success)