From 63249a99db5a62661896ed9bc50fd4cf9cc7c590 Mon Sep 17 00:00:00 2001 From: JKorf Date: Thu, 15 Feb 2024 21:26:54 +0100 Subject: [PATCH] Update index.html --- docs/index.html | 115 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 115 insertions(+) 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 @@ + @@ -2649,6 +2650,120 @@ var result = await huobiClient.SpotApi.Trading.PlaceOrderAsync(account.Id, "BTCU + Subscribe Order Updates
+

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
+});
+
+
+
+
+
+
+
+ + Minimal API

A minimal API example allowing the caller to retrieve ticker information for a specific exchange and asset pair