diff --git a/docs/index.html b/docs/index.html index ce796e7..630ac20 100644 --- a/docs/index.html +++ b/docs/index.html @@ -108,6 +108,7 @@
Subscribe to the websocket authenticated user order update stream
+// Retrieve the listen key
+var listenKey = await binanceClient.SpotApi.Account.StartUserStreamAsync();
+
+// Subscribe using the key
+await binanceSocketClient.SpotApi.Account.SubscribeToUserDataUpdatesAsync(listenKey.Data, data => {
+ // Handle update
+}, null, null, null);
+ await bitfinexSocketClient.SpotApi.SubscribeToUserUpdatesAsync(orderHandler: data => {
+ // Handle update
+});
+ await bitgetSocketClient.SpotApi.SubscribeToOrderUpdatesAsync(data => {
+ // Handle update
+});
+ await bybitSocketClient.V5PrivateApi.SubscribeToOrderUpdatesAsync(data => {
+ // Handle update
+});
+ await coinExSocketClient.SpotApi.SubscribeToOrderUpdatesAsync(data => {
+ // Handle update
+});
+ await huobiSocketClient.SpotApi.SubscribeToOrderUpdatesAsync(onOrderMatched: data => {
+ // Handle update
+});
+ // Retrieve the token
+var token = await krakenClient.SpotApi.Account.GetWebsocketTokenAsync();
+
+// Subscribe using the token
+await krakenSocketClient.SpotApi.SubscribeToOrderUpdatesAsync(token.Data.Token, data => {
+ // Handle update
+});
+ await kucoinSocketClient.SpotApi.SubscribeToOrderUpdatesAsync(data => {
+ // Handle update
+}, null, null);
+ // Retrieve the listen key
+var token = await mexcClient.SpotApi.Account.StartUserStreamAsync();
+
+// Subscribe using the key
+await mexcSocketClient.SpotApi.SubscribeToOrderUpdatesAsync(token.Data, data => {
+ // Handle update
+});
+ await okxSocketClient.UnifiedApi.Trading.SubscribeToOrderUpdatesAsync(OKXInstrumentType.Spot, null, null, data => {
+ // Handle update
+});
+
+ A minimal API example allowing the caller to retrieve ticker information for a specific exchange and asset pair