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 0cff678 commit 4c89986
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2701,7 +2701,13 @@ <h5 class="mb-0"> <a href="#" class="collapsed" data-toggle="collapse" data-targ
// Subscribe using the key
await binanceSocketClient.SpotApi.Account.SubscribeToUserDataUpdatesAsync(listenKey.Data, data => {
// Handle update
}, null, null, null);</code></pre>
}, null, null, null);

// 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);
});</code></pre>
</div>
<div class="tab-pane fade" id="example-stream-order-bitfinex" role="tabpanel" aria-labelledby="example-stream-order-bitfinex-tab">
<pre><code>await bitfinexSocketClient.SpotApi.SubscribeToUserUpdatesAsync(orderHandler: data => {
Expand Down Expand Up @@ -2749,6 +2755,12 @@ <h5 class="mb-0"> <a href="#" class="collapsed" data-toggle="collapse" data-targ
// Subscribe using the key
await mexcSocketClient.SpotApi.SubscribeToOrderUpdatesAsync(token.Data, data => {
// Handle update
});

// 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);
});</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 4c89986

Please sign in to comment.