Skip to content

Commit

Permalink
Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
JKorf committed Mar 1, 2024
1 parent 4c89986 commit 27704bf
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2706,7 +2706,11 @@ <h5 class="mb-0"> <a href="#" class="collapsed" data-toggle="collapse" data-targ
// 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);
}
});</code></pre>
</div>
<div class="tab-pane fade" id="example-stream-order-bitfinex" role="tabpanel" aria-labelledby="example-stream-order-bitfinex-tab">
Expand Down Expand Up @@ -2760,7 +2764,11 @@ <h5 class="mb-0"> <a href="#" class="collapsed" data-toggle="collapse" data-targ
// 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);
}
});</code></pre>
</div>
<div class="tab-pane fade" id="example-stream-order-okx" role="tabpanel" aria-labelledby="example-stream-order-okx-tab">
Expand Down

0 comments on commit 27704bf

Please sign in to comment.