From 27704bf09026e15398f4a09a154a686fa8fbdc17 Mon Sep 17 00:00:00 2001 From: JKorf Date: Fri, 1 Mar 2024 14:29:26 +0100 Subject: [PATCH] Docs --- docs/index.html | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/docs/index.html b/docs/index.html index 87607bf..bc6d29d 100644 --- a/docs/index.html +++ b/docs/index.html @@ -2706,7 +2706,11 @@ await binanceSocketClient.SpotApi.Account.SubscribeToUserDataUpdatesAsync(listen // The listen key will stay valid for 60 minutes, after this no updates will be send anymore // To extend the life time of the listen key it is recommended to call the KeepAliveUserStreamAsync method every 30 minutes _ = Task.Run(async () => { - await binanceClient.SpotApi.Account.KeepAliveUserStreamAsync(token.Data); + while (true) + { + await Task.Delay(Timespan.FromMinutes(30)); + await binanceClient.SpotApi.Account.KeepAliveUserStreamAsync(token.Data); + } });
@@ -2760,7 +2764,11 @@ await mexcSocketClient.SpotApi.SubscribeToOrderUpdatesAsync(token.Data, data => // The listen key will stay valid for 60 minutes, after this the connection is closed and reconnecting with the same listen key will fail // To extend the life time of the listen key it is recommended to call the KeepAliveUserStreamAsync method every 30 minutes _ = Task.Run(async () => { - await mexcClient.SpotApi.Account.KeepAliveUserStreamAsync(token.Data); + while (true) + { + await Task.Delay(Timespan.FromMinutes(30)); + await mexcClient.SpotApi.Account.KeepAliveUserStreamAsync(token.Data); + } });