diff --git a/docs/index.html b/docs/index.html index bc6d29d..b957e2f 100644 --- a/docs/index.html +++ b/docs/index.html @@ -135,6 +135,7 @@ Nuget BinanceJKorf/Binance.Net + BingXJKorf/BingX.Net BitfinexJKorf/Bitfinex.Net BitgetJKorf/Bitget.Net BybitJKorf/Bybit.Net @@ -206,6 +207,9 @@ + @@ -242,6 +246,9 @@
dotnet add package Binance.Net
+
+
dotnet add package JK.BingX.Net
+
dotnet add package Bitfinex.Net
@@ -299,6 +306,9 @@ + @@ -333,6 +343,9 @@
builder.Services.AddBinance();
+
+
+
builder.Services.AddBingX();
builder.Services.AddBitfinex();
@@ -373,6 +386,9 @@ + @@ -434,6 +450,35 @@
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
InterfaceDescription
IBingXRestClientThe client for accessing the BingX REST API
IBingXSocketClientThe client for accessing the BingX Websocket API
IBingXOrderBookFactoryA factory for creating SymbolOrderBook instances for the BingX API
ICryptoRestClientAn aggregating client from which multiple different library REST clients can be accessed
ICryptoSocketClientAn aggregating client from which multiple different library Websocket clients can be accessed
ISpotClientAn implementation of the ISpotClient interface for BingX. The ISpotClient offers basic Spot API functionality in a combined interface
+
@@ -726,6 +771,9 @@ + @@ -766,6 +814,18 @@ if (!tickersResult.Success) // Handle error, tickersResult.Error contains more information } else +{ + // Handle data, tickersResult.Data will contain the actual data +} + +
+
var client = new BingXRestClient();
+var tickersResult = await client.SpotApi.ExchangeData.GetTickersAsync();
+if (!tickersResult.Success)
+{
+  // Handle error, tickersResult.Error contains more information
+}
+else
 {
   // Handle data, tickersResult.Data will contain the actual data
 }
@@ -965,6 +1025,9 @@ else + @@ -1003,6 +1066,17 @@ if (!subscribeResult.Success) { // Handle error, subscribeResult.Error contains more information on why the subscription failed } +// Subscribing was successfull, the data will now be streamed into the data handler +
+
+
var client = new BingXSocketClient();
+var subscribeResult = await client.SpotApi.SubscribeToTickerUpdatesAsync("ETH-USDT", update => {
+  // Handle the data update, update.Data will contain the actual data
+});
+if (!subscribeResult.Success)
+{
+  // Handle error, subscribeResult.Error contains more information on why the subscription failed
+}
 // Subscribing was successfull, the data will now be streamed into the data handler
@@ -1310,6 +1384,9 @@ options.ApiCredentials = new ApiCredentials("YOUR PUBLIC KEY", "YOUR PRIVATE KEY + @@ -1344,6 +1421,15 @@ options.ApiCredentials = new ApiCredentials("YOUR PUBLIC KEY", "YOUR PRIVATE KEY
builder.Services.AddBinance(
+  restOptions => {
+    restOptions.RequestTimeout = TimeSpan.FromSeconds(30);
+  },
+  socketOptions => {
+    socketOptions.RequestTimeout = TimeSpan.FromSeconds(10);
+  });
+
+
+
builder.Services.AddBingX(
   restOptions => {
     restOptions.RequestTimeout = TimeSpan.FromSeconds(30);
   },
@@ -1448,6 +1534,9 @@ options.ApiCredentials = new ApiCredentials("YOUR PUBLIC KEY", "YOUR PRIVATE KEY
 			  
+			  
 			  
@@ -1482,6 +1571,12 @@ options.ApiCredentials = new ApiCredentials("YOUR PUBLIC KEY", "YOUR PRIVATE KEY
 			
var binanceRestClient = new BinanceRestClient(opts =>
+{
+    opts.RequestTimeout = TimeSpan.FromSeconds(30);
+});
+
+
+
var client = new BingXRestClient(opts =>
 {
     opts.RequestTimeout = TimeSpan.FromSeconds(30);
 });
@@ -1556,6 +1651,9 @@ options.ApiCredentials = new ApiCredentials("YOUR PUBLIC KEY", "YOUR PRIVATE KEY + @@ -1594,6 +1692,13 @@ options.ApiCredentials = new ApiCredentials("YOUR PUBLIC KEY", "YOUR PRIVATE KEY options.RequestTimeout = TimeSpan.FromSeconds(30); }); var client = new BinanceRestClient();
+
+
+
BingXRestClient.SetDefaultOptions(options =>
+{
+    options.RequestTimeout = TimeSpan.FromSeconds(30);
+});
+var client = new BingXRestClient();
BitfinexRestClient.SetDefaultOptions(options =>
@@ -1846,6 +1951,9 @@ var client = new OKXRestClient();
+ @@ -1884,6 +1992,19 @@ if (!startResult.Success) } // Book has successfully started and synchronized +// Once no longer needed you can stop the live sync functionality by calling StopAsync() +await book.StopAsync(); + +
+
+
var book = new BingXSpotSymbolOrderBook("ETH-USDT");
+var startResult = await book.StartAsync();
+if (!startResult.Success)
+{
+  // Handle error, error info available in startResult.Error
+}
+// Book has successfully started and synchronized
+
 // Once no longer needed you can stop the live sync functionality by calling StopAsync()
 await book.StopAsync();
 
InterfaceDescription