diff --git a/Binance.Net/Binance.Net.xml b/Binance.Net/Binance.Net.xml index f6dc36342..f3b9e2e0a 100644 --- a/Binance.Net/Binance.Net.xml +++ b/Binance.Net/Binance.Net.xml @@ -769,31 +769,31 @@ - + - + - + - + - + - + - + - + - + @@ -6255,12 +6255,12 @@ Cancellation token Liquidation history - + Binance Spot Crypto loans endpoints - + Get income history from crypto loans @@ -6274,7 +6274,7 @@ Cancellation token - + Take a crypto loan @@ -6288,7 +6288,7 @@ Cancellation token - + Get borrow order history @@ -6304,7 +6304,7 @@ Cancellation token - + Get ongoing loan orders @@ -6318,7 +6318,7 @@ Cancellation token - + Repay a loan @@ -6331,7 +6331,7 @@ Cancellation token - + Get loan repayment history @@ -6347,7 +6347,7 @@ Cancellation token - + Adjust LTV for a loan @@ -6359,7 +6359,7 @@ Cancellation token - + Get LTV adjustment history diff --git a/Binance.Net/Clients/GeneralApi/BinanceRestClientGeneralApi.cs b/Binance.Net/Clients/GeneralApi/BinanceRestClientGeneralApi.cs index 3967b7083..d7a664c08 100644 --- a/Binance.Net/Clients/GeneralApi/BinanceRestClientGeneralApi.cs +++ b/Binance.Net/Clients/GeneralApi/BinanceRestClientGeneralApi.cs @@ -35,7 +35,7 @@ public class BinanceRestClientGeneralApi : RestApiClient, IBinanceRestClientGene /// public IBinanceRestClientGeneralApiSavings Savings { get; } /// - public IBinanceClientGeneralApiCryptoLoans CryptoLoans { get; } + public IBinanceRestClientGeneralApiLoans CryptoLoans { get; } /// public IBinanceRestClientGeneralApiMining Mining { get; } /// @@ -52,7 +52,7 @@ internal BinanceRestClientGeneralApi(ILogger logger, HttpClient? httpClient, Bin Brokerage = new BinanceRestClientGeneralApiBrokerage(this); Futures = new BinanceRestClientGeneralApiFutures(this); Savings = new BinanceRestClientGeneralApiSavings(this); - CryptoLoans = new BinanceClientGeneralApiCryptoLoans(this); + CryptoLoans = new BinanceRestClientGeneralApiLoans(this); Mining = new BinanceRestClientGeneralApiMining(this); SubAccount = new BinanceRestClientGeneralApiSubAccount(this); diff --git a/Binance.Net/Clients/GeneralApi/BinanceRestClientGeneralApiLoans.cs b/Binance.Net/Clients/GeneralApi/BinanceRestClientGeneralApiLoans.cs index f64e6f501..049ed1f0c 100644 --- a/Binance.Net/Clients/GeneralApi/BinanceRestClientGeneralApiLoans.cs +++ b/Binance.Net/Clients/GeneralApi/BinanceRestClientGeneralApiLoans.cs @@ -17,7 +17,7 @@ namespace Binance.Net.Clients.GeneralApi { /// - public class BinanceClientGeneralApiCryptoLoans : IBinanceClientGeneralApiCryptoLoans + public class BinanceRestClientGeneralApiLoans : IBinanceRestClientGeneralApiLoans { // Crypto loans private const string incomingEndpoint = "loan/income"; @@ -31,7 +31,7 @@ public class BinanceClientGeneralApiCryptoLoans : IBinanceClientGeneralApiCrypto private readonly BinanceRestClientGeneralApi _baseClient; - internal BinanceClientGeneralApiCryptoLoans(BinanceRestClientGeneralApi baseClient) + internal BinanceRestClientGeneralApiLoans(BinanceRestClientGeneralApi baseClient) { _baseClient = baseClient; } diff --git a/Binance.Net/Interfaces/Clients/GeneralApi/IBinanceRestClientGeneralApi.cs b/Binance.Net/Interfaces/Clients/GeneralApi/IBinanceRestClientGeneralApi.cs index 3abd708d2..b5da9a3ea 100644 --- a/Binance.Net/Interfaces/Clients/GeneralApi/IBinanceRestClientGeneralApi.cs +++ b/Binance.Net/Interfaces/Clients/GeneralApi/IBinanceRestClientGeneralApi.cs @@ -26,7 +26,7 @@ public interface IBinanceRestClientGeneralApi : IRestApiClient, IDisposable /// /// Endpoints related to crypto loans /// - public IBinanceClientGeneralApiCryptoLoans CryptoLoans { get; } + public IBinanceRestClientGeneralApiLoans CryptoLoans { get; } /// /// Endpoints related to mining diff --git a/Binance.Net/Interfaces/Clients/GeneralApi/IBinanceRestClientGeneralApiLoans.cs b/Binance.Net/Interfaces/Clients/GeneralApi/IBinanceRestClientGeneralApiLoans.cs index fcfff22b8..a7ff1da2a 100644 --- a/Binance.Net/Interfaces/Clients/GeneralApi/IBinanceRestClientGeneralApiLoans.cs +++ b/Binance.Net/Interfaces/Clients/GeneralApi/IBinanceRestClientGeneralApiLoans.cs @@ -12,7 +12,7 @@ namespace Binance.Net.Interfaces.Clients.GeneralApi /// /// Binance Spot Crypto loans endpoints /// - public interface IBinanceClientGeneralApiCryptoLoans + public interface IBinanceRestClientGeneralApiLoans { /// /// Get income history from crypto loans diff --git a/Examples/Blazor.ServerSide/Data/WeatherForecast.cs b/Examples/Blazor.ServerSide/Data/WeatherForecast.cs deleted file mode 100644 index 61889b5ce..000000000 --- a/Examples/Blazor.ServerSide/Data/WeatherForecast.cs +++ /dev/null @@ -1,15 +0,0 @@ -using System; - -namespace Blazor.ServerSide.Data -{ - public class WeatherForecast - { - public DateTime Date { get; set; } - - public int TemperatureC { get; set; } - - public int TemperatureF => 32 + (int)(TemperatureC / 0.5556); - - public string Summary { get; set; } - } -} diff --git a/Examples/Blazor.ServerSide/Data/WeatherForecastService.cs b/Examples/Blazor.ServerSide/Data/WeatherForecastService.cs deleted file mode 100644 index 9eadc27ab..000000000 --- a/Examples/Blazor.ServerSide/Data/WeatherForecastService.cs +++ /dev/null @@ -1,25 +0,0 @@ -using System; -using System.Linq; -using System.Threading.Tasks; - -namespace Blazor.ServerSide.Data -{ - public class WeatherForecastService - { - private static readonly string[] Summaries = new[] - { - "Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching" - }; - - public Task GetForecastAsync(DateTime startDate) - { - var rng = new Random(); - return Task.FromResult(Enumerable.Range(1, 5).Select(index => new WeatherForecast - { - Date = startDate.AddDays(index), - TemperatureC = rng.Next(-20, 55), - Summary = Summaries[rng.Next(Summaries.Length)] - }).ToArray()); - } - } -} diff --git a/docs/ClientInfo/CoinFuturesApi/IBinanceRestClientCoinFuturesApi.md b/docs/ClientInfo/CoinFuturesApi/IBinanceRestClientCoinFuturesApi.md index 98dd9abe1..4b8ef565d 100644 --- a/docs/ClientInfo/CoinFuturesApi/IBinanceRestClientCoinFuturesApi.md +++ b/docs/ClientInfo/CoinFuturesApi/IBinanceRestClientCoinFuturesApi.md @@ -1,11 +1,10 @@ --- title: IBinanceRestClientCoinFuturesApi has_children: true -parent: IBinanceClientCoinFuturesApi -grand_parent: Rest API documentation +parent: Rest API documentation --- *[generated documentation]* -`BinanceClient > CoinFuturesApi > IBinanceRestClient` +`BinanceRestClient > CoinFuturesApi` *Binance Coin futures API endpoints* *** @@ -13,10 +12,10 @@ grand_parent: Rest API documentation **IFuturesClient CommonFuturesClient { get; }** *** *Endpoints related to account settings, info or actions* -**IBinanceRestClientCoinFuturesApiAccount Account { get; }** +**[IBinanceRestClientCoinFuturesApiAccount](IBinanceRestClientCoinFuturesApiAccount.html) Account { get; }** *** *Endpoints related to retrieving market data* -**IBinanceRestClientCoinFuturesApiExchangeData ExchangeData { get; }** +**[IBinanceRestClientCoinFuturesApiExchangeData](IBinanceRestClientCoinFuturesApiExchangeData.html) ExchangeData { get; }** *** *Endpoints related to orders and trades* -**IBinanceRestClientCoinFuturesApiTrading Trading { get; }** +**[IBinanceRestClientCoinFuturesApiTrading](IBinanceRestClientCoinFuturesApiTrading.html) Trading { get; }** diff --git a/docs/ClientInfo/CoinFuturesApi/IBinanceRestClientCoinFuturesApiAccount.md b/docs/ClientInfo/CoinFuturesApi/IBinanceRestClientCoinFuturesApiAccount.md index 200d10c82..77c93ac32 100644 --- a/docs/ClientInfo/CoinFuturesApi/IBinanceRestClientCoinFuturesApiAccount.md +++ b/docs/ClientInfo/CoinFuturesApi/IBinanceRestClientCoinFuturesApiAccount.md @@ -1,11 +1,11 @@ --- title: IBinanceRestClientCoinFuturesApiAccount has_children: false -parent: IBinanceClientCoinFuturesApi +parent: IBinanceRestClientCoinFuturesApi grand_parent: Rest API documentation --- *[generated documentation]* -`BinanceClient > CoinFuturesApi > IBinanceRestClientAccount` +`BinanceRestClient > CoinFuturesApi > Account` *Binance COIN-M futures account endpoints. Account endpoints include balance info, withdraw/deposit info and requesting and account settings* @@ -19,8 +19,8 @@ grand_parent: Rest API documentation *Requests to change the initial leverage of the given symbol* ```csharp -var client = new BinanceClient(); -var result = await client.CoinFuturesApi.IBinanceRestClientAccount.ChangeInitialLeverageAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.CoinFuturesApi.Account.ChangeInitialLeverageAsync(/* parameters */); ``` ```csharp @@ -46,8 +46,8 @@ Task> ChangeInitialLeve *Change the margin type for an open position* ```csharp -var client = new BinanceClient(); -var result = await client.CoinFuturesApi.IBinanceRestClientAccount.ChangeMarginTypeAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.CoinFuturesApi.Account.ChangeMarginTypeAsync(/* parameters */); ``` ```csharp @@ -73,8 +73,8 @@ Task> ChangeMarginTypeAsync( *Gets account information, including balances* ```csharp -var client = new BinanceClient(); -var result = await client.CoinFuturesApi.IBinanceRestClientAccount.GetAccountInfoAsync(); +var client = new BinanceRestClient(); +var result = await client.CoinFuturesApi.Account.GetAccountInfoAsync(); ``` ```csharp @@ -98,8 +98,8 @@ Task> GetAccountInfoAsync(long? rec *Gets account balances* ```csharp -var client = new BinanceClient(); -var result = await client.CoinFuturesApi.IBinanceRestClientAccount.GetBalancesAsync(); +var client = new BinanceRestClient(); +var result = await client.CoinFuturesApi.Account.GetBalancesAsync(); ``` ```csharp @@ -123,8 +123,8 @@ Task>> GetBalancesAs *Gets Notional and Leverage Brackets.* ```csharp -var client = new BinanceClient(); -var result = await client.CoinFuturesApi.IBinanceRestClientAccount.GetBracketsAsync(); +var client = new BinanceRestClient(); +var result = await client.CoinFuturesApi.Account.GetBracketsAsync(); ``` ```csharp @@ -149,8 +149,8 @@ Task>> GetBracketsAsync(s *Gets the income history for the futures account* ```csharp -var client = new BinanceClient(); -var result = await client.CoinFuturesApi.IBinanceRestClientAccount.GetIncomeHistoryAsync(); +var client = new BinanceRestClient(); +var result = await client.CoinFuturesApi.Account.GetIncomeHistoryAsync(); ``` ```csharp @@ -179,8 +179,8 @@ Task>> GetIncomeHistoryAs *Requests the margin change history for a specific symbol* ```csharp -var client = new BinanceClient(); -var result = await client.CoinFuturesApi.IBinanceRestClientAccount.GetMarginChangeHistoryAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.CoinFuturesApi.Account.GetMarginChangeHistoryAsync(/* parameters */); ``` ```csharp @@ -209,8 +209,8 @@ Task>> GetMar *Get position ADL quantile estimations* ```csharp -var client = new BinanceClient(); -var result = await client.CoinFuturesApi.IBinanceRestClientAccount.GetPositionAdlQuantileEstimationAsync(); +var client = new BinanceRestClient(); +var result = await client.CoinFuturesApi.Account.GetPositionAdlQuantileEstimationAsync(); ``` ```csharp @@ -235,8 +235,8 @@ Task>> GetPositionAd *Gets account position information* ```csharp -var client = new BinanceClient(); -var result = await client.CoinFuturesApi.IBinanceRestClientAccount.GetPositionInformationAsync(); +var client = new BinanceRestClient(); +var result = await client.CoinFuturesApi.Account.GetPositionInformationAsync(); ``` ```csharp @@ -262,8 +262,8 @@ Task>> GetPositionInformat *Get user's position mode (Hedge Mode or One-way Mode ) on EVERY symbol* ```csharp -var client = new BinanceClient(); -var result = await client.CoinFuturesApi.IBinanceRestClientAccount.GetPositionModeAsync(); +var client = new BinanceRestClient(); +var result = await client.CoinFuturesApi.Account.GetPositionModeAsync(); ``` ```csharp @@ -287,8 +287,8 @@ Task> GetPositionModeAsync(long? recei *Gets account commission rates* ```csharp -var client = new BinanceClient(); -var result = await client.CoinFuturesApi.IBinanceRestClientAccount.GetUserCommissionRateAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.CoinFuturesApi.Account.GetUserCommissionRateAsync(/* parameters */); ``` ```csharp @@ -313,8 +313,8 @@ Task> GetUserCommissionRa *Keep alive the user stream. This should be called every 30 minutes to prevent the user stream being stopped* ```csharp -var client = new BinanceClient(); -var result = await client.CoinFuturesApi.IBinanceRestClientAccount.KeepAliveUserStreamAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.CoinFuturesApi.Account.KeepAliveUserStreamAsync(/* parameters */); ``` ```csharp @@ -338,8 +338,8 @@ Task> KeepAliveUserStreamAsync(string listenKey, Cancellat *Change the margin on an open position* ```csharp -var client = new BinanceClient(); -var result = await client.CoinFuturesApi.IBinanceRestClientAccount.ModifyPositionMarginAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.CoinFuturesApi.Account.ModifyPositionMarginAsync(/* parameters */); ``` ```csharp @@ -367,8 +367,8 @@ Task> ModifyPositionMarginAsyn *Change user's position mode (Hedge Mode or One-way Mode ) on EVERY symbol* ```csharp -var client = new BinanceClient(); -var result = await client.CoinFuturesApi.IBinanceRestClientAccount.ModifyPositionModeAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.CoinFuturesApi.Account.ModifyPositionModeAsync(/* parameters */); ``` ```csharp @@ -393,8 +393,8 @@ Task> ModifyPositionModeAsync(bool dualPositionSide *Start a user stream. The resulting listen key can be used to subscribe to the user stream using the socket client* ```csharp -var client = new BinanceClient(); -var result = await client.CoinFuturesApi.IBinanceRestClientAccount.StartUserStreamAsync(); +var client = new BinanceRestClient(); +var result = await client.CoinFuturesApi.Account.StartUserStreamAsync(); ``` ```csharp @@ -417,8 +417,8 @@ Task> StartUserStreamAsync(CancellationToken ct = default) *Stop the user stream, no updates will be send anymore* ```csharp -var client = new BinanceClient(); -var result = await client.CoinFuturesApi.IBinanceRestClientAccount.StopUserStreamAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.CoinFuturesApi.Account.StopUserStreamAsync(/* parameters */); ``` ```csharp diff --git a/docs/ClientInfo/CoinFuturesApi/IBinanceRestClientCoinFuturesApiExchangeData.md b/docs/ClientInfo/CoinFuturesApi/IBinanceRestClientCoinFuturesApiExchangeData.md index f52e768bd..a54038f46 100644 --- a/docs/ClientInfo/CoinFuturesApi/IBinanceRestClientCoinFuturesApiExchangeData.md +++ b/docs/ClientInfo/CoinFuturesApi/IBinanceRestClientCoinFuturesApiExchangeData.md @@ -1,11 +1,11 @@ --- title: IBinanceRestClientCoinFuturesApiExchangeData has_children: false -parent: IBinanceClientCoinFuturesApi +parent: IBinanceRestClientCoinFuturesApi grand_parent: Rest API documentation --- *[generated documentation]* -`BinanceClient > CoinFuturesApi > IBinanceRestClientExchangeData` +`BinanceRestClient > CoinFuturesApi > ExchangeData` *Binance COIN-M futures exchange data endpoints. Exchange data includes market data (tickers, order books, etc) and system status.* @@ -19,8 +19,8 @@ grand_parent: Rest API documentation *Gets compressed, aggregate trades. Trades that fill at the time, from the same order, with the same price will have the quantity aggregated.* ```csharp -var client = new BinanceClient(); -var result = await client.CoinFuturesApi.IBinanceRestClientExchangeData.GetAggregatedTradeHistoryAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.CoinFuturesApi.ExchangeData.GetAggregatedTradeHistoryAsync(/* parameters */); ``` ```csharp @@ -48,8 +48,8 @@ Task>> GetAggregatedTradeHisto *Gets basis* ```csharp -var client = new BinanceClient(); -var result = await client.CoinFuturesApi.IBinanceRestClientExchangeData.GetBasisAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.CoinFuturesApi.ExchangeData.GetBasisAsync(/* parameters */); ``` ```csharp @@ -78,8 +78,8 @@ Task>> GetBasisAsync(string pair, *Gets the best price/quantity on the order book for a symbol.* ```csharp -var client = new BinanceClient(); -var result = await client.CoinFuturesApi.IBinanceRestClientExchangeData.GetBookPricesAsync(); +var client = new BinanceRestClient(); +var result = await client.CoinFuturesApi.ExchangeData.GetBookPricesAsync(); ``` ```csharp @@ -104,8 +104,8 @@ Task>> GetBookPricesAsync(str *Get candlestick data for the provided pair* ```csharp -var client = new BinanceClient(); -var result = await client.CoinFuturesApi.IBinanceRestClientExchangeData.GetContinuousContractKlinesAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.CoinFuturesApi.ExchangeData.GetContinuousContractKlinesAsync(/* parameters */); ``` ```csharp @@ -134,8 +134,8 @@ Task>> GetContinuousContractKlinesAsync *Get's information about the exchange including rate limits and symbol list* ```csharp -var client = new BinanceClient(); -var result = await client.CoinFuturesApi.IBinanceRestClientExchangeData.GetExchangeInfoAsync(); +var client = new BinanceRestClient(); +var result = await client.CoinFuturesApi.ExchangeData.GetExchangeInfoAsync(); ``` ```csharp @@ -158,8 +158,8 @@ Task> GetExchangeInfoAsync(Cancell *Get funding rate history for the provided symbol* ```csharp -var client = new BinanceClient(); -var result = await client.CoinFuturesApi.IBinanceRestClientExchangeData.GetFundingRatesAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.CoinFuturesApi.ExchangeData.GetFundingRatesAsync(/* parameters */); ``` ```csharp @@ -186,8 +186,8 @@ Task>> GetFundingRat *Gets Global Long/Short Ratio (Accounts)* ```csharp -var client = new BinanceClient(); -var result = await client.CoinFuturesApi.IBinanceRestClientExchangeData.GetGlobalLongShortAccountRatioAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.CoinFuturesApi.ExchangeData.GetGlobalLongShortAccountRatioAsync(/* parameters */); ``` ```csharp @@ -215,8 +215,8 @@ Task>> GetGlobalLongShor *Get candlestick data for the provided pair* ```csharp -var client = new BinanceClient(); -var result = await client.CoinFuturesApi.IBinanceRestClientExchangeData.GetIndexPriceKlinesAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.CoinFuturesApi.ExchangeData.GetIndexPriceKlinesAsync(/* parameters */); ``` ```csharp @@ -244,8 +244,8 @@ Task>> GetIndexPriceKlinesAsync *Get candlestick data for the provided symbol* ```csharp -var client = new BinanceClient(); -var result = await client.CoinFuturesApi.IBinanceRestClientExchangeData.GetKlinesAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.CoinFuturesApi.ExchangeData.GetKlinesAsync(/* parameters */); ``` ```csharp @@ -273,8 +273,8 @@ Task>> GetKlinesAsync(string symbol, Kl *Kline/candlestick bars for the mark price of a symbol* ```csharp -var client = new BinanceClient(); -var result = await client.CoinFuturesApi.IBinanceRestClientExchangeData.GetMarkPriceKlinesAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.CoinFuturesApi.ExchangeData.GetMarkPriceKlinesAsync(/* parameters */); ``` ```csharp @@ -302,8 +302,8 @@ Task>> GetMarkPriceKlinesAsync( *Get Mark Price and Funding Rate for the provided symbol* ```csharp -var client = new BinanceClient(); -var result = await client.CoinFuturesApi.IBinanceRestClientExchangeData.GetMarkPricesAsync(); +var client = new BinanceRestClient(); +var result = await client.CoinFuturesApi.ExchangeData.GetMarkPricesAsync(); ``` ```csharp @@ -328,8 +328,8 @@ Task>> GetMarkPricesAsync *Get present open interest of a specific symbol.* ```csharp -var client = new BinanceClient(); -var result = await client.CoinFuturesApi.IBinanceRestClientExchangeData.GetOpenInterestAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.CoinFuturesApi.ExchangeData.GetOpenInterestAsync(/* parameters */); ``` ```csharp @@ -353,8 +353,8 @@ Task> GetOpenInterestAsync(string *Gets Open Interest History* ```csharp -var client = new BinanceClient(); -var result = await client.CoinFuturesApi.IBinanceRestClientExchangeData.GetOpenInterestHistoryAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.CoinFuturesApi.ExchangeData.GetOpenInterestHistoryAsync(/* parameters */); ``` ```csharp @@ -383,8 +383,8 @@ Task>> GetOpenI *Gets the order book for the provided symbol* ```csharp -var client = new BinanceClient(); -var result = await client.CoinFuturesApi.IBinanceRestClientExchangeData.GetOrderBookAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.CoinFuturesApi.ExchangeData.GetOrderBookAsync(/* parameters */); ``` ```csharp @@ -409,8 +409,8 @@ Task> GetOrderBookAsync(string symbol, in *Get a list of the prices of all symbols* ```csharp -var client = new BinanceClient(); -var result = await client.CoinFuturesApi.IBinanceRestClientExchangeData.GetPricesAsync(); +var client = new BinanceRestClient(); +var result = await client.CoinFuturesApi.ExchangeData.GetPricesAsync(); ``` ```csharp @@ -435,8 +435,8 @@ Task>> GetPricesAsync(string? *Gets the recent trades for a symbol* ```csharp -var client = new BinanceClient(); -var result = await client.CoinFuturesApi.IBinanceRestClientExchangeData.GetRecentTradesAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.CoinFuturesApi.ExchangeData.GetRecentTradesAsync(/* parameters */); ``` ```csharp @@ -461,8 +461,8 @@ Task>> GetRecentTradesAsync(strin *Requests the server for the local time. This function also determines the offset between server and local time and uses this for subsequent API calls* ```csharp -var client = new BinanceClient(); -var result = await client.CoinFuturesApi.IBinanceRestClientExchangeData.GetServerTimeAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.CoinFuturesApi.ExchangeData.GetServerTimeAsync(/* parameters */); ``` ```csharp @@ -486,8 +486,8 @@ Task> GetServerTimeAsync(bool resetAutoTimestamp, Cancel *Gets Taker Buy/Sell Volume Ratio* ```csharp -var client = new BinanceClient(); -var result = await client.CoinFuturesApi.IBinanceRestClientExchangeData.GetTakerBuySellVolumeRatioAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.CoinFuturesApi.ExchangeData.GetTakerBuySellVolumeRatioAsync(/* parameters */); ``` ```csharp @@ -516,8 +516,8 @@ Task>> GetTakerB *Get data regarding the last 24 hours change* ```csharp -var client = new BinanceClient(); -var result = await client.CoinFuturesApi.IBinanceRestClientExchangeData.GetTickersAsync(); +var client = new BinanceRestClient(); +var result = await client.CoinFuturesApi.ExchangeData.GetTickersAsync(); ``` ```csharp @@ -542,8 +542,8 @@ Task>> GetTickersAsync(string? symbo *Gets Top Trader Long/Short Ratio (Accounts)* ```csharp -var client = new BinanceClient(); -var result = await client.CoinFuturesApi.IBinanceRestClientExchangeData.GetTopLongShortAccountRatioAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.CoinFuturesApi.ExchangeData.GetTopLongShortAccountRatioAsync(/* parameters */); ``` ```csharp @@ -571,8 +571,8 @@ Task>> GetTopLongShortAc *Gets Top Trader Long/Short Ratio (Positions)* ```csharp -var client = new BinanceClient(); -var result = await client.CoinFuturesApi.IBinanceRestClientExchangeData.GetTopLongShortPositionRatioAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.CoinFuturesApi.ExchangeData.GetTopLongShortPositionRatioAsync(/* parameters */); ``` ```csharp @@ -600,8 +600,8 @@ Task>> GetTopLongShortPo *Gets the historical trades for a symbol* ```csharp -var client = new BinanceClient(); -var result = await client.CoinFuturesApi.IBinanceRestClientExchangeData.GetTradeHistoryAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.CoinFuturesApi.ExchangeData.GetTradeHistoryAsync(/* parameters */); ``` ```csharp @@ -627,8 +627,8 @@ Task>> GetTradeHistoryAsync(strin *Pings the Binance Futures API* ```csharp -var client = new BinanceClient(); -var result = await client.CoinFuturesApi.IBinanceRestClientExchangeData.PingAsync(); +var client = new BinanceRestClient(); +var result = await client.CoinFuturesApi.ExchangeData.PingAsync(); ``` ```csharp diff --git a/docs/ClientInfo/CoinFuturesApi/IBinanceRestClientCoinFuturesApiTrading.md b/docs/ClientInfo/CoinFuturesApi/IBinanceRestClientCoinFuturesApiTrading.md index 115910d7c..b65be3949 100644 --- a/docs/ClientInfo/CoinFuturesApi/IBinanceRestClientCoinFuturesApiTrading.md +++ b/docs/ClientInfo/CoinFuturesApi/IBinanceRestClientCoinFuturesApiTrading.md @@ -1,11 +1,11 @@ --- title: IBinanceRestClientCoinFuturesApiTrading has_children: false -parent: IBinanceClientCoinFuturesApi +parent: IBinanceRestClientCoinFuturesApi grand_parent: Rest API documentation --- *[generated documentation]* -`BinanceClient > CoinFuturesApi > IBinanceRestClientTrading` +`BinanceRestClient > CoinFuturesApi > Trading` *Binance COIN-M futures trading endpoints, placing and mananging orders.* @@ -20,8 +20,8 @@ grand_parent: Rest API documentation *so that the existing countdown time can be canceled and replaced by a new one.* ```csharp -var client = new BinanceClient(); -var result = await client.CoinFuturesApi.IBinanceRestClientTrading.CancelAllOrdersAfterTimeoutAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.CoinFuturesApi.Trading.CancelAllOrdersAfterTimeoutAsync(/* parameters */); ``` ```csharp @@ -47,8 +47,8 @@ Task> CancelAllOrdersAfterTimeoutAs *Cancels all open orders* ```csharp -var client = new BinanceClient(); -var result = await client.CoinFuturesApi.IBinanceRestClientTrading.CancelAllOrdersAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.CoinFuturesApi.Trading.CancelAllOrdersAsync(/* parameters */); ``` ```csharp @@ -73,8 +73,8 @@ Task> CancelAllOrdersAsync(string s *Cancels muliple orders* ```csharp -var client = new BinanceClient(); -var result = await client.CoinFuturesApi.IBinanceRestClientTrading.CancelMultipleOrdersAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.CoinFuturesApi.Trading.CancelMultipleOrdersAsync(/* parameters */); ``` ```csharp @@ -101,8 +101,8 @@ Task>>> CancelMu *Cancels a pending order* ```csharp -var client = new BinanceClient(); -var result = await client.CoinFuturesApi.IBinanceRestClientTrading.CancelOrderAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.CoinFuturesApi.Trading.CancelOrderAsync(/* parameters */); ``` ```csharp @@ -129,8 +129,8 @@ Task> CancelOrderAsync(string symbol, l *Gets a list of users forced orders* ```csharp -var client = new BinanceClient(); -var result = await client.CoinFuturesApi.IBinanceRestClientTrading.GetForcedOrdersAsync(); +var client = new BinanceRestClient(); +var result = await client.CoinFuturesApi.Trading.GetForcedOrdersAsync(); ``` ```csharp @@ -158,8 +158,8 @@ Task>> GetForcedOrdersAsync(strin *Retrieves data for a specific open order. Either orderId or origClientOrderId should be provided.* ```csharp -var client = new BinanceClient(); -var result = await client.CoinFuturesApi.IBinanceRestClientTrading.GetOpenOrderAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.CoinFuturesApi.Trading.GetOpenOrderAsync(/* parameters */); ``` ```csharp @@ -186,8 +186,8 @@ Task> GetOpenOrderAsync(string symbol, long? *Gets a list of open orders* ```csharp -var client = new BinanceClient(); -var result = await client.CoinFuturesApi.IBinanceRestClientTrading.GetOpenOrdersAsync(); +var client = new BinanceRestClient(); +var result = await client.CoinFuturesApi.Trading.GetOpenOrdersAsync(); ``` ```csharp @@ -212,8 +212,8 @@ Task>> GetOpenOrdersAsync(string? *Retrieves data for a specific order. Either orderId or origClientOrderId should be provided.* ```csharp -var client = new BinanceClient(); -var result = await client.CoinFuturesApi.IBinanceRestClientTrading.GetOrderAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.CoinFuturesApi.Trading.GetOrderAsync(/* parameters */); ``` ```csharp @@ -240,8 +240,8 @@ Task> GetOrderAsync(string symbol, long? orde *Gets all orders for the provided symbol* ```csharp -var client = new BinanceClient(); -var result = await client.CoinFuturesApi.IBinanceRestClientTrading.GetOrdersAsync(); +var client = new BinanceRestClient(); +var result = await client.CoinFuturesApi.Trading.GetOrdersAsync(); ``` ```csharp @@ -270,8 +270,8 @@ Task>> GetOrdersAsync(string? sym *Gets all user trades for provided symbol* ```csharp -var client = new BinanceClient(); -var result = await client.CoinFuturesApi.IBinanceRestClientTrading.GetUserTradesAsync(); +var client = new BinanceRestClient(); +var result = await client.CoinFuturesApi.Trading.GetUserTradesAsync(); ``` ```csharp @@ -302,8 +302,8 @@ Task>> GetUserTradesAsync(str *Place multiple orders in one call* ```csharp -var client = new BinanceClient(); -var result = await client.CoinFuturesApi.IBinanceRestClientTrading.PlaceMultipleOrdersAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.CoinFuturesApi.Trading.PlaceMultipleOrdersAsync(/* parameters */); ``` ```csharp @@ -328,8 +328,8 @@ Task>>> PlaceMul *Places a new order* ```csharp -var client = new BinanceClient(); -var result = await client.CoinFuturesApi.IBinanceRestClientTrading.PlaceOrderAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.CoinFuturesApi.Trading.PlaceOrderAsync(/* parameters */); ``` ```csharp diff --git a/docs/ClientInfo/CoinFuturesApi/IBinanceSocketClientCoinFuturesApi.md b/docs/ClientInfo/CoinFuturesApi/IBinanceSocketClientCoinFuturesApi.md index 8d2288de5..422efb660 100644 --- a/docs/ClientInfo/CoinFuturesApi/IBinanceSocketClientCoinFuturesApi.md +++ b/docs/ClientInfo/CoinFuturesApi/IBinanceSocketClientCoinFuturesApi.md @@ -1,10 +1,10 @@ --- title: IBinanceSocketClientCoinFuturesApi has_children: true -parent: Rest API documentation +parent: Socket API documentation --- *[generated documentation]* -`BinanceClient > CoinFuturesApi` +`BinanceSocketClient > CoinFuturesApi` *Binance Coin futures streams* @@ -18,7 +18,7 @@ parent: Rest API documentation *Subscribes to the aggregated trades update stream for the provided symbol* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.CoinFuturesApi.SubscribeToAggregatedTradeUpdatesAsync(/* parameters */); ``` @@ -44,7 +44,7 @@ Task> SubscribeToAggregatedTradeUpdatesAsync(stri *Subscribes to the aggregated trades update stream for the provided symbols* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.CoinFuturesApi.SubscribeToAggregatedTradeUpdatesAsync(/* parameters */); ``` @@ -70,7 +70,7 @@ Task> SubscribeToAggregatedTradeUpdatesAsync(IEnu *Subscribes to all book ticker update streams* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.CoinFuturesApi.SubscribeToAllBookTickerUpdatesAsync(/* parameters */); ``` @@ -95,7 +95,7 @@ Task> SubscribeToAllBookTickerUpdatesAsync(Action *Subscribes to all forced liquidations stream* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.CoinFuturesApi.SubscribeToAllLiquidationUpdatesAsync(/* parameters */); ``` @@ -120,7 +120,7 @@ Task> SubscribeToAllLiquidationUpdatesAsync(Actio *Subscribe to the Mark price update stream for all symbols* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.CoinFuturesApi.SubscribeToAllMarkPriceUpdatesAsync(/* parameters */); ``` @@ -146,7 +146,7 @@ Task> SubscribeToAllMarkPriceUpdatesAsync(Action< *Subscribes to mini ticker updates stream for all symbols* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.CoinFuturesApi.SubscribeToAllMiniTickerUpdatesAsync(/* parameters */); ``` @@ -171,7 +171,7 @@ Task> SubscribeToAllMiniTickerUpdatesAsync(Action *Subscribes to ticker updates stream for all symbols* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.CoinFuturesApi.SubscribeToAllTickerUpdatesAsync(/* parameters */); ``` @@ -196,7 +196,7 @@ Task> SubscribeToAllTickerUpdatesAsync(Action> SubscribeToBookTickerUpdatesAsync(string sy *Subscribes to the book ticker update stream for the provided symbols* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.CoinFuturesApi.SubscribeToBookTickerUpdatesAsync(/* parameters */); ``` @@ -248,7 +248,7 @@ Task> SubscribeToBookTickerUpdatesAsync(IEnumerab *Subscribes to the continuous contract candlestick update stream for the provided pair* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.CoinFuturesApi.SubscribeToContinuousContractKlineUpdatesAsync(/* parameters */); ``` @@ -276,7 +276,7 @@ Task> SubscribeToContinuousContractKlineUpdatesAs *Subscribes to the continuous contract candlestick update stream for the provided pairs* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.CoinFuturesApi.SubscribeToContinuousContractKlineUpdatesAsync(/* parameters */); ``` @@ -304,7 +304,7 @@ Task> SubscribeToContinuousContractKlineUpdatesAs *Subscribes to the index candlestick update stream for the provided pair* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.CoinFuturesApi.SubscribeToIndexKlineUpdatesAsync(/* parameters */); ``` @@ -331,7 +331,7 @@ Task> SubscribeToIndexKlineUpdatesAsync(string pa *Subscribes to the index candlestick update stream for the provided pairs* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.CoinFuturesApi.SubscribeToIndexKlineUpdatesAsync(/* parameters */); ``` @@ -358,7 +358,7 @@ Task> SubscribeToIndexKlineUpdatesAsync(IEnumerab *Subscribes to the Index price update stream for a single pair* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.CoinFuturesApi.SubscribeToIndexPriceUpdatesAsync(/* parameters */); ``` @@ -385,7 +385,7 @@ Task> SubscribeToIndexPriceUpdatesAsync(string pa *Subscribes to the Index price update stream for a list of pairs* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.CoinFuturesApi.SubscribeToIndexPriceUpdatesAsync(/* parameters */); ``` @@ -412,7 +412,7 @@ Task> SubscribeToIndexPriceUpdatesAsync(IEnumerab *Subscribes to the candlestick update stream for the provided symbol* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.CoinFuturesApi.SubscribeToKlineUpdatesAsync(/* parameters */); ``` @@ -439,7 +439,7 @@ Task> SubscribeToKlineUpdatesAsync(string symbol, *Subscribes to the candlestick update stream for the provided symbol and intervals* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.CoinFuturesApi.SubscribeToKlineUpdatesAsync(/* parameters */); ``` @@ -466,7 +466,7 @@ Task> SubscribeToKlineUpdatesAsync(string symbol, *Subscribes to the candlestick update stream for the provided symbols* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.CoinFuturesApi.SubscribeToKlineUpdatesAsync(/* parameters */); ``` @@ -493,7 +493,7 @@ Task> SubscribeToKlineUpdatesAsync(IEnumerable> SubscribeToKlineUpdatesAsync(IEnumerable> SubscribeToLiquidationUpdatesAsync(string s *Subscribes to list of symbol forced liquidations stream* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.CoinFuturesApi.SubscribeToLiquidationUpdatesAsync(/* parameters */); ``` @@ -572,7 +572,7 @@ Task> SubscribeToLiquidationUpdatesAsync(IEnumera *Subscribes to the mark price candlestick update stream for the provided symbol* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.CoinFuturesApi.SubscribeToMarkPriceKlineUpdatesAsync(/* parameters */); ``` @@ -599,7 +599,7 @@ Task> SubscribeToMarkPriceKlineUpdatesAsync(strin *Subscribes to the mark price candlestick update stream for the provided symbols* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.CoinFuturesApi.SubscribeToMarkPriceKlineUpdatesAsync(/* parameters */); ``` @@ -626,7 +626,7 @@ Task> SubscribeToMarkPriceKlineUpdatesAsync(IEnum *Subscribes to the Mark price update stream for a single symbol* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.CoinFuturesApi.SubscribeToMarkPriceUpdatesAsync(/* parameters */); ``` @@ -653,7 +653,7 @@ Task> SubscribeToMarkPriceUpdatesAsync(string sym *Subscribes to the Mark price update stream for a list of symbols* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.CoinFuturesApi.SubscribeToMarkPriceUpdatesAsync(/* parameters */); ``` @@ -680,7 +680,7 @@ Task> SubscribeToMarkPriceUpdatesAsync(IEnumerabl *Subscribes to mini ticker updates stream for a specific symbol* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.CoinFuturesApi.SubscribeToMiniTickerUpdatesAsync(/* parameters */); ``` @@ -706,7 +706,7 @@ Task> SubscribeToMiniTickerUpdatesAsync(string sy *Subscribes to mini ticker updates stream for a list of symbol* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.CoinFuturesApi.SubscribeToMiniTickerUpdatesAsync(/* parameters */); ``` @@ -732,7 +732,7 @@ Task> SubscribeToMiniTickerUpdatesAsync(IEnumerab *Subscribes to the order book updates for the provided symbol* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.CoinFuturesApi.SubscribeToOrderBookUpdatesAsync(/* parameters */); ``` @@ -759,7 +759,7 @@ Task> SubscribeToOrderBookUpdatesAsync(string sym *Subscribes to the depth update stream for the provided symbols* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.CoinFuturesApi.SubscribeToOrderBookUpdatesAsync(/* parameters */); ``` @@ -786,7 +786,7 @@ Task> SubscribeToOrderBookUpdatesAsync(IEnumerabl *Subscribes to the depth updates for the provided symbol* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.CoinFuturesApi.SubscribeToPartialOrderBookUpdatesAsync(/* parameters */); ``` @@ -814,7 +814,7 @@ Task> SubscribeToPartialOrderBookUpdatesAsync(str *Subscribes to the depth updates for the provided symbols* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.CoinFuturesApi.SubscribeToPartialOrderBookUpdatesAsync(/* parameters */); ``` @@ -841,7 +841,7 @@ Task> SubscribeToPartialOrderBookUpdatesAsync(IEn *Subscribe to contract/symbol updates* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.CoinFuturesApi.SubscribeToSymbolUpdatesAsync(/* parameters */); ``` @@ -866,7 +866,7 @@ Task> SubscribeToSymbolUpdatesAsync(Action> SubscribeToTickerUpdatesAsync(string symbol *Subscribes to ticker updates stream for a specific symbol* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.CoinFuturesApi.SubscribeToTickerUpdatesAsync(/* parameters */); ``` @@ -917,7 +917,7 @@ Task> SubscribeToTickerUpdatesAsync(IEnumerable> SubscribeToTradeUpdatesAsync(string symbol, *Subscribe to individual trade update. NOTE: This endpoint stream isn't document and therefor might be changed or removed without prior notice* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.CoinFuturesApi.SubscribeToTradeUpdatesAsync(/* parameters */); ``` @@ -968,7 +968,7 @@ Task> SubscribeToTradeUpdatesAsync(IEnumerable GeneralApi > IBinanceRestClient` +`BinanceRestClient > GeneralApi` *Binance general API endpoints* *** *Endpoints related to brokerage* -**IBinanceRestClientGeneralApiBrokerage Brokerage { get; }** +**[IBinanceRestClientGeneralApiBrokerage](IBinanceRestClientGeneralApiBrokerage.html) Brokerage { get; }** *** *Endpoints related to crypto loans* -**[IBinanceClientGeneralApiCryptoLoans](IBinanceClientGeneralApiCryptoLoans.html) CryptoLoans { get; }** +**[IBinanceRestClientGeneralApiLoans](IBinanceRestClientGeneralApiLoans.html) CryptoLoans { get; }** *** *Endpoints related to futures account interactions* -**IBinanceRestClientGeneralApiFutures Futures { get; }** +**[IBinanceRestClientGeneralApiFutures](IBinanceRestClientGeneralApiFutures.html) Futures { get; }** *** *Endpoints related to mining* -**IBinanceRestClientGeneralApiMining Mining { get; }** +**[IBinanceRestClientGeneralApiMining](IBinanceRestClientGeneralApiMining.html) Mining { get; }** *** *Endpoints related to savings* -**IBinanceRestClientGeneralApiSavings Savings { get; }** +**[IBinanceRestClientGeneralApiSavings](IBinanceRestClientGeneralApiSavings.html) Savings { get; }** *** *Endpoints related to requesting data for and controlling sub accounts* -**IBinanceRestClientGeneralApiSubAccount SubAccount { get; }** +**[IBinanceRestClientGeneralApiSubAccount](IBinanceRestClientGeneralApiSubAccount.html) SubAccount { get; }** diff --git a/docs/ClientInfo/GeneralApi/IBinanceRestClientGeneralApiBrokerage.md b/docs/ClientInfo/GeneralApi/IBinanceRestClientGeneralApiBrokerage.md index 71b16c2f8..45d4ca6aa 100644 --- a/docs/ClientInfo/GeneralApi/IBinanceRestClientGeneralApiBrokerage.md +++ b/docs/ClientInfo/GeneralApi/IBinanceRestClientGeneralApiBrokerage.md @@ -1,11 +1,11 @@ --- title: IBinanceRestClientGeneralApiBrokerage has_children: false -parent: IBinanceClientGeneralApi +parent: IBinanceRestClientGeneralApi grand_parent: Rest API documentation --- *[generated documentation]* -`BinanceClient > GeneralApi > IBinanceRestClientBrokerage` +`BinanceRestClient > GeneralApi > Brokerage` *Binance brokerage endpoints.* @@ -18,8 +18,8 @@ grand_parent: Rest API documentation *Add IP Restriction for Sub Account Api Key* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientBrokerage.AddIpRestrictionForSubAccountApiKeyAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Brokerage.AddIpRestrictionForSubAccountApiKeyAsync(/* parameters */); ``` ```csharp @@ -46,8 +46,8 @@ Task> AddIpRestrictionForS *Sub account must be enabled margin before using this switch* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientBrokerage.ChangeBnbBurnForSubAccountMarginInterestAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Brokerage.ChangeBnbBurnForSubAccountMarginInterestAsync(/* parameters */); ``` ```csharp @@ -72,8 +72,8 @@ Task> ChangeBnb *Enable Or Disable BNB Burn for Sub Account SPOT and MARGIN* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientBrokerage.ChangeBnbBurnForSubAccountSpotAndMarginAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Brokerage.ChangeBnbBurnForSubAccountSpotAndMarginAsync(/* parameters */); ``` ```csharp @@ -98,8 +98,8 @@ Task> ChangeBnbB *Enable or Disable IP Restriction for Sub Account Api Key* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientBrokerage.ChangeIpRestrictionForSubAccountApiKeyAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Brokerage.ChangeIpRestrictionForSubAccountApiKeyAsync(/* parameters */); ``` ```csharp @@ -129,8 +129,8 @@ Task> ChangeIpRestrictionForSubAcco *Sub account should be enable futures before its api-key's futuresTrade being enabled* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientBrokerage.ChangeSubAccountApiKeyPermissionAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Brokerage.ChangeSubAccountApiKeyPermissionAsync(/* parameters */); ``` ```csharp @@ -163,8 +163,8 @@ Task> ChangeSubAccountApiKeyPerm *Different symbols have the same commission for the same pair* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientBrokerage.ChangeSubAccountCoinFuturesCommissionAdjustmentAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Brokerage.ChangeSubAccountCoinFuturesCommissionAdjustmentAsync(/* parameters */); ``` ```csharp @@ -195,8 +195,8 @@ Task> ChangeSubAc *If margin enabled, marginMakerCommission or marginTakerCommission has default value as spotMakerCommission or spotTakerCommission* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientBrokerage.ChangeSubAccountCommissionAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Brokerage.ChangeSubAccountCommissionAsync(/* parameters */); ``` ```csharp @@ -228,8 +228,8 @@ Task> ChangeSubAccountCommis *If futures disabled, it is not allowed to set subaccount's USDT-â“‚ futures commission adjustment on any symbol* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientBrokerage.ChangeSubAccountFuturesCommissionAdjustmentAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Brokerage.ChangeSubAccountFuturesCommissionAdjustmentAsync(/* parameters */); ``` ```csharp @@ -260,8 +260,8 @@ Task> ChangeSubAccoun *Sub account should be enable futures before its api-key's futuresTrade being enabled* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientBrokerage.CreateApiKeyForSubAccountAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Brokerage.CreateApiKeyForSubAccountAsync(/* parameters */); ``` ```csharp @@ -290,8 +290,8 @@ Task> CreateApiKeyForSubAccoun *You need to enable "trade" option for the api key which requests this endpoint* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientBrokerage.CreateSubAccountAsync(); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Brokerage.CreateSubAccountAsync(); ``` ```csharp @@ -314,8 +314,8 @@ Task> CreateSubAccountAsyn *Delete IP Restriction for Sub Account Api Key* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientBrokerage.DeleteIpRestrictionForSubAccountApiKeyAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Brokerage.DeleteIpRestrictionForSubAccountApiKeyAsync(/* parameters */); ``` ```csharp @@ -343,8 +343,8 @@ Task> DeleteIpRestrictionForSub *You need to enable "trade" option for the api key which requests this endpoint* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientBrokerage.DeleteSubAccountApiKeyAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Brokerage.DeleteSubAccountApiKeyAsync(/* parameters */); ``` ```csharp @@ -369,8 +369,8 @@ Task DeleteSubAccountApiKeyAsync(string subAccountId, string apiKey, int *Enable Futures for Sub Account* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientBrokerage.EnableFuturesForSubAccountAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Brokerage.EnableFuturesForSubAccountAsync(/* parameters */); ``` ```csharp @@ -394,8 +394,8 @@ Task> EnableFuturesForSubAcco *Enable Leverage Token for Sub Account* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientBrokerage.EnableLeverageTokenForSubAccountAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Brokerage.EnableLeverageTokenForSubAccountAsync(/* parameters */); ``` ```csharp @@ -419,8 +419,8 @@ Task> EnableLeverageTok *Enable Margin for Sub Account* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientBrokerage.EnableMarginForSubAccountAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Brokerage.EnableMarginForSubAccountAsync(/* parameters */); ``` ```csharp @@ -444,8 +444,8 @@ Task> EnableMarginForSubAccoun *Get BNB Burn Status for Sub Account* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientBrokerage.GetBnbBurnStatusForSubAccountAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Brokerage.GetBnbBurnStatusForSubAccountAsync(/* parameters */); ``` ```csharp @@ -469,8 +469,8 @@ Task> GetBnbBurnStatusForSubAccount *Broker Account Information* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientBrokerage.GetBrokerAccountInfoAsync(); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Brokerage.GetBrokerAccountInfoAsync(); ``` ```csharp @@ -494,8 +494,8 @@ Task> GetBrokerAccountInfoAsync(int? *Only get the latest history of past 7 days* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientBrokerage.GetBrokerCommissionRebatesRecentAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Brokerage.GetBrokerCommissionRebatesRecentAsync(/* parameters */); ``` ```csharp @@ -523,8 +523,8 @@ Task>> GetBrokerCommissionReba *Query Broker Futures Commission Rebate Record* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientBrokerage.GetBrokerFuturesCommissionRebatesHistoryAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Brokerage.GetBrokerFuturesCommissionRebatesHistoryAsync(/* parameters */); ``` ```csharp @@ -552,8 +552,8 @@ Task>> GetBrokerFutures *Get IP Restriction for Sub Account Api Key* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientBrokerage.GetIpRestrictionForSubAccountApiKeyAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Brokerage.GetIpRestrictionForSubAccountApiKeyAsync(/* parameters */); ``` ```csharp @@ -578,8 +578,8 @@ Task> GetIpRestrictionForSubAccount *Query Sub Account Api Key* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientBrokerage.GetSubAccountApiKeyAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Brokerage.GetSubAccountApiKeyAsync(/* parameters */); ``` ```csharp @@ -610,8 +610,8 @@ Task> GetSubAccountApiKeyAsync(s *Different symbols have the same commission for the same pair* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientBrokerage.GetSubAccountCoinFuturesCommissionAdjustmentAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Brokerage.GetSubAccountCoinFuturesCommissionAdjustmentAsync(/* parameters */); ``` ```csharp @@ -638,8 +638,8 @@ Task>> Ge *If both startDate and endDate are sent, time between startDate and endDate must be less than 7 days* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientBrokerage.GetSubAccountDepositHistoryAsync(); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Brokerage.GetSubAccountDepositHistoryAsync(); ``` ```csharp @@ -670,8 +670,8 @@ Task>> G *If subAccountId is not sent, the size must be sent* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientBrokerage.GetSubAccountFuturesAssetInfoAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Brokerage.GetSubAccountFuturesAssetInfoAsync(/* parameters */); ``` ```csharp @@ -701,8 +701,8 @@ Task> GetSubAccountFuturesAssetI *If futures disabled, it is not allowed to set subaccount's USDT-â“‚ futures commission adjustment on any symbol* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientBrokerage.GetSubAccountFuturesCommissionAdjustmentAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Brokerage.GetSubAccountFuturesCommissionAdjustmentAsync(/* parameters */); ``` ```csharp @@ -728,8 +728,8 @@ Task>> Ge *If subAccountId is not sent, the size must be sent* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientBrokerage.GetSubAccountMarginAssetInfoAsync(); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Brokerage.GetSubAccountMarginAssetInfoAsync(); ``` ```csharp @@ -755,8 +755,8 @@ Task> GetSubAccountMarginAssetInf *Query Sub Account* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientBrokerage.GetSubAccountsAsync(); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Brokerage.GetSubAccountsAsync(); ``` ```csharp @@ -783,8 +783,8 @@ Task>> GetSubAccountsAsync *If subAccountId is not sent, the size must be sent* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientBrokerage.GetSubAccountSpotAssetInfoAsync(); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Brokerage.GetSubAccountSpotAssetInfoAsync(); ``` ```csharp @@ -810,8 +810,8 @@ Task> GetSubAccountSpotAssetInfoAsy *Query Sub Account Transfer History (Futures)* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientBrokerage.GetTransferFuturesHistoryAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Brokerage.GetTransferFuturesHistoryAsync(/* parameters */); ``` ```csharp @@ -843,8 +843,8 @@ Task> GetTransferFutu *If showAllStatus is false, the status in response will show three types: INIT,PROCESS,SUCCESS* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientBrokerage.GetTransferHistoryAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Brokerage.GetTransferHistoryAsync(/* parameters */); ``` ```csharp @@ -878,8 +878,8 @@ Task>> GetTransfe *If showAllStatus is true, the status in response will show four types: INIT,PROCESS,SUCCESS,FAILURE* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientBrokerage.GetTransferHistoryUniversalAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Brokerage.GetTransferHistoryUniversalAsync(/* parameters */); ``` ```csharp @@ -913,8 +913,8 @@ Task>> G *Transfer to master account if toId not sent* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientBrokerage.TransferAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Brokerage.TransferAsync(/* parameters */); ``` ```csharp @@ -946,8 +946,8 @@ Task> TransferAsync(string asset, *Each master account could transfer 5000 times/min* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientBrokerage.TransferFuturesAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Brokerage.TransferFuturesAsync(/* parameters */); ``` ```csharp @@ -980,8 +980,8 @@ Task> TransferFuturesAsync( *Transfer between futures account is not supported* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientBrokerage.TransferUniversalAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Brokerage.TransferUniversalAsync(/* parameters */); ``` ```csharp diff --git a/docs/ClientInfo/GeneralApi/IBinanceRestClientGeneralApiFutures.md b/docs/ClientInfo/GeneralApi/IBinanceRestClientGeneralApiFutures.md index a5eebf5ab..4afd4e240 100644 --- a/docs/ClientInfo/GeneralApi/IBinanceRestClientGeneralApiFutures.md +++ b/docs/ClientInfo/GeneralApi/IBinanceRestClientGeneralApiFutures.md @@ -1,11 +1,11 @@ --- title: IBinanceRestClientGeneralApiFutures has_children: false -parent: IBinanceClientGeneralApi +parent: IBinanceRestClientGeneralApi grand_parent: Rest API documentation --- *[generated documentation]* -`BinanceClient > GeneralApi > IBinanceRestClientFutures` +`BinanceRestClient > GeneralApi > Futures` *Binance futures interaction endpoints* @@ -19,8 +19,8 @@ grand_parent: Rest API documentation *Adjust cross collateral LTV* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientFutures.AdjustCrossCollateralLoanToValueAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Futures.AdjustCrossCollateralLoanToValueAsync(/* parameters */); ``` ```csharp @@ -48,8 +48,8 @@ Task> AdjustCrossCollateral *Borrow for cross-collateral* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientFutures.BorrowForCrossCollateralAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Futures.BorrowForCrossCollateralAsync(/* parameters */); ``` ```csharp @@ -77,8 +77,8 @@ Task> BorrowForCrossCollateral *Get cross collateral LTV adjustment history* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientFutures.GetAdjustCrossCollateralLoanToValueHistoryAsync(); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Futures.GetAdjustCrossCollateralLoanToValueHistoryAsync(); ``` ```csharp @@ -107,8 +107,8 @@ Task>> *Get cross collateral borrow history* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientFutures.GetCrossCollateralBorrowHistoryAsync(); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Futures.GetCrossCollateralBorrowHistoryAsync(); ``` ```csharp @@ -136,8 +136,8 @@ Task>> Ge *Get cross-collateral info* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientFutures.GetCrossCollateralInformationAsync(); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Futures.GetCrossCollateralInformationAsync(); ``` ```csharp @@ -161,8 +161,8 @@ Task>> GetCrossColl *Get cross collateral liquidation history* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientFutures.GetCrossCollateralLiquidationHistoryAsync(); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Futures.GetCrossCollateralLiquidationHistoryAsync(); ``` ```csharp @@ -191,8 +191,8 @@ Task *Get cross collateral borrow history* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientFutures.GetCrossCollateralRepayHistoryAsync(); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Futures.GetCrossCollateralRepayHistoryAsync(); ``` ```csharp @@ -220,8 +220,8 @@ Task>> Get *Get cross-collateral wallet info* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientFutures.GetCrossCollateralWalletAsync(); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Futures.GetCrossCollateralWalletAsync(); ``` ```csharp @@ -245,8 +245,8 @@ Task> GetCrossCollateralWalletAsync( *Get history of transfers between spot and futures account* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientFutures.GetFuturesTransferHistoryAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Futures.GetFuturesTransferHistoryAsync(/* parameters */); ``` ```csharp @@ -275,8 +275,8 @@ Task>> GetFuturesT *Get max quantity for adjust cross-collateral LTV* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientFutures.GetMaxAmountForAdjustCrossCollateralLoanToValueAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Futures.GetMaxAmountForAdjustCrossCollateralLoanToValueAsync(/* parameters */); ``` ```csharp @@ -302,8 +302,8 @@ Task> GetMaxAmountForAdjus *Calculate rate after adjust cross-collateral loan to value* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientFutures.GetRateAfterAdjustLoanToValueAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Futures.GetRateAfterAdjustLoanToValueAsync(/* parameters */); ``` ```csharp @@ -331,8 +331,8 @@ Task> GetRateAfterAdjustLoanToV *Repay for cross-collateral* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientFutures.RepayForCrossCollateralAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Futures.RepayForCrossCollateralAsync(/* parameters */); ``` ```csharp @@ -359,8 +359,8 @@ Task> RepayForCrossCollateralAs *Execute a transfer between the spot account and a futures account* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientFutures.TransferFuturesAccountAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Futures.TransferFuturesAccountAsync(/* parameters */); ``` ```csharp diff --git a/docs/ClientInfo/GeneralApi/IBinanceRestClientGeneralApiLoans.md b/docs/ClientInfo/GeneralApi/IBinanceRestClientGeneralApiLoans.md new file mode 100644 index 000000000..c58bc023c --- /dev/null +++ b/docs/ClientInfo/GeneralApi/IBinanceRestClientGeneralApiLoans.md @@ -0,0 +1,253 @@ +--- +title: IBinanceRestClientGeneralApiLoans +has_children: false +parent: IBinanceRestClientGeneralApi +grand_parent: Rest API documentation +--- +*[generated documentation]* +`BinanceRestClient > GeneralApi > Loans` +*Binance Spot Crypto loans endpoints* + + +*** + +## AdjustLTVAsync + +[https://binance-docs.github.io/apidocs/spot/en/#adjust-ltv-crypto-loan-adjust-ltv-trade](https://binance-docs.github.io/apidocs/spot/en/#adjust-ltv-crypto-loan-adjust-ltv-trade) +

+ +*Adjust LTV for a loan* + +```csharp +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Loans.AdjustLTVAsync(/* parameters */); +``` + +```csharp +Task> AdjustLTVAsync(long orderId, decimal quantity, bool addOrRmove, long? receiveWindow = default, CancellationToken ct = default); +``` + +|Parameter|Description| +|---|---| +|orderId|Order id| +|quantity|Adjustment quantity| +|addOrRmove|True for add, false to reduce| +|_[Optional]_ receiveWindow|The receive window for which this request is active. When the request takes longer than this to complete the server will reject the request| +|_[Optional]_ ct|Cancellation token| + +

+ +*** + +## BorrowAsync + +[https://binance-docs.github.io/apidocs/spot/en/#borrow-crypto-loan-borrow-trade](https://binance-docs.github.io/apidocs/spot/en/#borrow-crypto-loan-borrow-trade) +

+ +*Take a crypto loan* + +```csharp +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Loans.BorrowAsync(/* parameters */); +``` + +```csharp +Task> BorrowAsync(string loanAsset, string collateralAsset, int loanTerm, decimal? loanQuantity = default, decimal? collateralQuantity = default, long? receiveWindow = default, CancellationToken ct = default); +``` + +|Parameter|Description| +|---|---| +|loanAsset|Asset to loan| +|collateralAsset|Collateral asset| +|loanTerm|Loan term in days, 7/14/30/90/180| +|_[Optional]_ loanQuantity|Quantity to loan in loan asset| +|_[Optional]_ collateralQuantity|Quantity to loan in collateral asset| +|_[Optional]_ receiveWindow|The receive window for which this request is active. When the request takes longer than this to complete the server will reject the request| +|_[Optional]_ ct|Cancellation token| + +

+ +*** + +## GetBorrowHistoryAsync + +[https://binance-docs.github.io/apidocs/spot/en/#borrow-get-loan-borrow-history-user_data](https://binance-docs.github.io/apidocs/spot/en/#borrow-get-loan-borrow-history-user_data) +

+ +*Get borrow order history* + +```csharp +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Loans.GetBorrowHistoryAsync(); +``` + +```csharp +Task>> GetBorrowHistoryAsync(long? orderId = default, string? loanAsset = default, string? collateralAsset = default, DateTime? startTime = default, DateTime? endTime = default, int? page = default, int? limit = default, long? receiveWindow = default, CancellationToken ct = default); +``` + +|Parameter|Description| +|---|---| +|_[Optional]_ orderId|Filter by order id| +|_[Optional]_ loanAsset|Filter by loan asset| +|_[Optional]_ collateralAsset|Filter by collateral asset| +|_[Optional]_ startTime|Filter by start time| +|_[Optional]_ endTime|Filter by end time| +|_[Optional]_ page|Page number| +|_[Optional]_ limit|Page size| +|_[Optional]_ receiveWindow|The receive window for which this request is active. When the request takes longer than this to complete the server will reject the request| +|_[Optional]_ ct|Cancellation token| + +

+ +*** + +## GetIncomeHistoryAsync + +[https://binance-docs.github.io/apidocs/spot/en/#get-crypto-loans-income-history-user_data](https://binance-docs.github.io/apidocs/spot/en/#get-crypto-loans-income-history-user_data) +

+ +*Get income history from crypto loans* + +```csharp +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Loans.GetIncomeHistoryAsync(/* parameters */); +``` + +```csharp +Task>> GetIncomeHistoryAsync(string asset, LoanIncomeType? type = default, DateTime? startTime = default, DateTime? endTime = default, int? limit = default, long? receiveWindow = default, CancellationToken ct = default); +``` + +|Parameter|Description| +|---|---| +|asset|The asset| +|_[Optional]_ type|Filter by type of incoming| +|_[Optional]_ startTime|Filter by startTime from| +|_[Optional]_ endTime|Filter by endTime from| +|_[Optional]_ limit|Limit of the amount of results| +|_[Optional]_ receiveWindow|The receive window for which this request is active. When the request takes longer than this to complete the server will reject the request| +|_[Optional]_ ct|Cancellation token| + +

+ +*** + +## GetLtvAdjustHistoryAsync + +[https://binance-docs.github.io/apidocs/spot/en/#adjust-ltv-get-loan-ltv-adjustment-history-user_data](https://binance-docs.github.io/apidocs/spot/en/#adjust-ltv-get-loan-ltv-adjustment-history-user_data) +

+ +*Get LTV adjustment history* + +```csharp +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Loans.GetLtvAdjustHistoryAsync(); +``` + +```csharp +Task>> GetLtvAdjustHistoryAsync(long? orderId = default, string? loanAsset = default, string? collateralAsset = default, DateTime? startTime = default, DateTime? endTime = default, int? page = default, int? limit = default, long? receiveWindow = default, CancellationToken ct = default); +``` + +|Parameter|Description| +|---|---| +|_[Optional]_ orderId|Filter by order id| +|_[Optional]_ loanAsset|Filter by loan asset| +|_[Optional]_ collateralAsset|Filter by collateral asset| +|_[Optional]_ startTime|Filter by start time| +|_[Optional]_ endTime|Filter by end time| +|_[Optional]_ page|Page number| +|_[Optional]_ limit|Page size| +|_[Optional]_ receiveWindow|The receive window for which this request is active. When the request takes longer than this to complete the server will reject the request| +|_[Optional]_ ct|Cancellation token| + +

+ +*** + +## GetOpenBorrowOrdersAsync + +[https://binance-docs.github.io/apidocs/spot/en/#borrow-get-loan-ongoing-orders-user_data](https://binance-docs.github.io/apidocs/spot/en/#borrow-get-loan-ongoing-orders-user_data) +

+ +*Get ongoing loan orders* + +```csharp +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Loans.GetOpenBorrowOrdersAsync(); +``` + +```csharp +Task>> GetOpenBorrowOrdersAsync(long? orderId = default, string? loanAsset = default, string? collateralAsset = default, int? page = default, int? limit = default, long? receiveWindow = default, CancellationToken ct = default); +``` + +|Parameter|Description| +|---|---| +|_[Optional]_ orderId|Filter by order id| +|_[Optional]_ loanAsset|Filter by loan asset| +|_[Optional]_ collateralAsset|Filter by collateral asset| +|_[Optional]_ page|Page number| +|_[Optional]_ limit|Page size| +|_[Optional]_ receiveWindow|The receive window for which this request is active. When the request takes longer than this to complete the server will reject the request| +|_[Optional]_ ct|Cancellation token| + +

+ +*** + +## GetRepayHistoryAsync + +[https://binance-docs.github.io/apidocs/spot/en/#repay-get-loan-repayment-history-user_data](https://binance-docs.github.io/apidocs/spot/en/#repay-get-loan-repayment-history-user_data) +

+ +*Get loan repayment history* + +```csharp +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Loans.GetRepayHistoryAsync(); +``` + +```csharp +Task>> GetRepayHistoryAsync(long? orderId = default, string? loanAsset = default, string? collateralAsset = default, DateTime? startTime = default, DateTime? endTime = default, int? page = default, int? limit = default, long? receiveWindow = default, CancellationToken ct = default); +``` + +|Parameter|Description| +|---|---| +|_[Optional]_ orderId|Filter by order id| +|_[Optional]_ loanAsset|Filter by loan asset| +|_[Optional]_ collateralAsset|Filter by collateral asset| +|_[Optional]_ startTime|Filter by start time| +|_[Optional]_ endTime|Filter by end time| +|_[Optional]_ page|Page number| +|_[Optional]_ limit|Page size| +|_[Optional]_ receiveWindow|The receive window for which this request is active. When the request takes longer than this to complete the server will reject the request| +|_[Optional]_ ct|Cancellation token| + +

+ +*** + +## RepayAsync + +[https://binance-docs.github.io/apidocs/spot/en/#repay-crypto-loan-repay-trade](https://binance-docs.github.io/apidocs/spot/en/#repay-crypto-loan-repay-trade) +

+ +*Repay a loan* + +```csharp +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Loans.RepayAsync(/* parameters */); +``` + +```csharp +Task> RepayAsync(long orderId, decimal quantity, bool? repayWithBorrowedAsset = default, bool? collateralReturn = default, long? receiveWindow = default, CancellationToken ct = default); +``` + +|Parameter|Description| +|---|---| +|orderId|Order id to repay| +|quantity|Quantity to repay| +|_[Optional]_ repayWithBorrowedAsset|True to repay with the borrowed asset, false to repay with collateral asset| +|_[Optional]_ collateralReturn|Return extra colalteral to spot account| +|_[Optional]_ receiveWindow|The receive window for which this request is active. When the request takes longer than this to complete the server will reject the request| +|_[Optional]_ ct|Cancellation token| + +

diff --git a/docs/ClientInfo/GeneralApi/IBinanceRestClientGeneralApiMining.md b/docs/ClientInfo/GeneralApi/IBinanceRestClientGeneralApiMining.md index 9c62b5e5d..ff2d04f4c 100644 --- a/docs/ClientInfo/GeneralApi/IBinanceRestClientGeneralApiMining.md +++ b/docs/ClientInfo/GeneralApi/IBinanceRestClientGeneralApiMining.md @@ -1,11 +1,11 @@ --- title: IBinanceRestClientGeneralApiMining has_children: false -parent: IBinanceClientGeneralApi +parent: IBinanceRestClientGeneralApi grand_parent: Rest API documentation --- *[generated documentation]* -`BinanceClient > GeneralApi > IBinanceRestClientMining` +`BinanceRestClient > GeneralApi > Mining` *Binance Spot Mining endpoints* @@ -19,8 +19,8 @@ grand_parent: Rest API documentation *Cancel Hashrate Resale Configuration* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientMining.CancelHashrateResaleRequestAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Mining.CancelHashrateResaleRequestAsync(/* parameters */); ``` ```csharp @@ -45,8 +45,8 @@ Task> CancelHashrateResaleRequestAsync(int configId, string *Gets hash rate resale details* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientMining.GetHashrateResaleDetailsAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Mining.GetHashrateResaleDetailsAsync(/* parameters */); ``` ```csharp @@ -73,8 +73,8 @@ Task> GetHashrateResaleDetailsAsync( *Gets hash rate resale list* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientMining.GetHashrateResaleListAsync(); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Mining.GetHashrateResaleListAsync(); ``` ```csharp @@ -99,8 +99,8 @@ Task> GetHashrateResaleListAsync(int? p *Gets miner details* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientMining.GetMinerDetailsAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Mining.GetMinerDetailsAsync(/* parameters */); ``` ```csharp @@ -126,8 +126,8 @@ Task>> GetMinerDetailsAsync(strin *Gets miner list* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientMining.GetMinerListAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Mining.GetMinerListAsync(/* parameters */); ``` ```csharp @@ -156,8 +156,8 @@ Task> GetMinerListAsync(string algorithm, string *Gets mining account list* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientMining.GetMiningAccountListAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Mining.GetMiningAccountListAsync(/* parameters */); ``` ```csharp @@ -182,8 +182,8 @@ Task>> GetMiningAccountListAsync *Gets mining algorithms info* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientMining.GetMiningAlgorithmListAsync(); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Mining.GetMiningAlgorithmListAsync(); ``` ```csharp @@ -206,8 +206,8 @@ Task>> GetMiningAlgorithmListA *Gets mining coins info* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientMining.GetMiningCoinListAsync(); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Mining.GetMiningCoinListAsync(); ``` ```csharp @@ -230,8 +230,8 @@ Task>> GetMiningCoinListAsync(Cance *Get other revenue list* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientMining.GetMiningOtherRevenueListAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Mining.GetMiningOtherRevenueListAsync(/* parameters */); ``` ```csharp @@ -261,8 +261,8 @@ Task> GetMiningOtherRevenueListAsync(stri *Gets revenue list* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientMining.GetMiningRevenueListAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Mining.GetMiningRevenueListAsync(/* parameters */); ``` ```csharp @@ -292,8 +292,8 @@ Task> GetMiningRevenueListAsync(string algorit *Get mining statistics* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientMining.GetMiningStatisticsAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Mining.GetMiningStatisticsAsync(/* parameters */); ``` ```csharp @@ -318,8 +318,8 @@ Task> GetMiningStatisticsAsync(string algo *Hashrate resale request* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientMining.PlaceHashrateResaleRequestAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Mining.PlaceHashrateResaleRequestAsync(/* parameters */); ``` ```csharp diff --git a/docs/ClientInfo/GeneralApi/IBinanceRestClientGeneralApiSavings.md b/docs/ClientInfo/GeneralApi/IBinanceRestClientGeneralApiSavings.md index 4c8c4e2ae..4bbf9193f 100644 --- a/docs/ClientInfo/GeneralApi/IBinanceRestClientGeneralApiSavings.md +++ b/docs/ClientInfo/GeneralApi/IBinanceRestClientGeneralApiSavings.md @@ -1,11 +1,11 @@ --- title: IBinanceRestClientGeneralApiSavings has_children: false -parent: IBinanceClientGeneralApi +parent: IBinanceRestClientGeneralApi grand_parent: Rest API documentation --- *[generated documentation]* -`BinanceClient > GeneralApi > IBinanceRestClientSavings` +`BinanceRestClient > GeneralApi > Savings` *Binance Spot Savings endpoints* @@ -19,8 +19,8 @@ grand_parent: Rest API documentation *Changed fixed/activity position to daily position* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientSavings.ChangeToDailyPositionAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Savings.ChangeToDailyPositionAsync(/* parameters */); ``` ```csharp @@ -47,8 +47,8 @@ Task> ChangeToDailyPositionAsyn *Get customized fixed project position* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientSavings.GetCustomizedFixedProjectPositionsAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Savings.GetCustomizedFixedProjectPositionsAsync(/* parameters */); ``` ```csharp @@ -75,8 +75,8 @@ Task>> GetCusto *Get fixed and customized fixed project list* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientSavings.GetFixedAndCustomizedFixedProjectListAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Savings.GetFixedAndCustomizedFixedProjectListAsync(/* parameters */); ``` ```csharp @@ -107,8 +107,8 @@ Task>> GetFixedAndCustomizedFixedProje *Get product list* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientSavings.GetFlexibleProductListAsync(); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Savings.GetFlexibleProductListAsync(); ``` ```csharp @@ -136,8 +136,8 @@ Task>> GetFlexibleProductListAs *Get flexible product position* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientSavings.GetFlexibleProductPositionAsync(); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Savings.GetFlexibleProductPositionAsync(); ``` ```csharp @@ -164,8 +164,8 @@ Task>> GetFlexibleProd *Get the purchase quota left for a product* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientSavings.GetLeftDailyPurchaseQuotaOfFlexableProductAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Savings.GetLeftDailyPurchaseQuotaOfFlexableProductAsync(/* parameters */); ``` ```csharp @@ -190,8 +190,8 @@ Task> GetLeftDailyPurchaseQuotaOfFlexabl *Get the redemption quota left for a product* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientSavings.GetLeftDailyRedemptionQuotaOfFlexibleProductAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Savings.GetLeftDailyRedemptionQuotaOfFlexibleProductAsync(/* parameters */); ``` ```csharp @@ -217,8 +217,8 @@ Task> GetLeftDailyRedemptionQuotaOfFle *Get lending account info* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientSavings.GetLendingAccountAsync(); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Savings.GetLendingAccountAsync(); ``` ```csharp @@ -242,8 +242,8 @@ Task> GetLendingAccountAsync(long? receiveW *Get interest history* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientSavings.GetLendingInterestHistoryAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Savings.GetLendingInterestHistoryAsync(/* parameters */); ``` ```csharp @@ -273,8 +273,8 @@ Task>> GetLendingIntere *Get purchase records* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientSavings.GetPurchaseRecordsAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Savings.GetPurchaseRecordsAsync(/* parameters */); ``` ```csharp @@ -304,8 +304,8 @@ Task>> GetPurchaseRecordsAsync( *Get redemption records* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientSavings.GetRedemptionRecordsAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Savings.GetRedemptionRecordsAsync(/* parameters */); ``` ```csharp @@ -335,8 +335,8 @@ Task>> GetRedemptionRecordsAs *Purchase customized fixed project* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientSavings.PurchaseCustomizedFixedProjectAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Savings.PurchaseCustomizedFixedProjectAsync(/* parameters */); ``` ```csharp @@ -362,8 +362,8 @@ Task> PurchaseCustomizedFixedProject *Purchase flexible product* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientSavings.PurchaseFlexibleProductAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Savings.PurchaseFlexibleProductAsync(/* parameters */); ``` ```csharp @@ -389,8 +389,8 @@ Task> PurchaseFlexibleProductAsync(s *Redeem flexible product* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientSavings.RedeemFlexibleProductAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.Savings.RedeemFlexibleProductAsync(/* parameters */); ``` ```csharp diff --git a/docs/ClientInfo/GeneralApi/IBinanceRestClientGeneralApiSubAccount.md b/docs/ClientInfo/GeneralApi/IBinanceRestClientGeneralApiSubAccount.md index 33b524fcd..fd4e064ad 100644 --- a/docs/ClientInfo/GeneralApi/IBinanceRestClientGeneralApiSubAccount.md +++ b/docs/ClientInfo/GeneralApi/IBinanceRestClientGeneralApiSubAccount.md @@ -1,11 +1,11 @@ --- title: IBinanceRestClientGeneralApiSubAccount has_children: false -parent: IBinanceClientGeneralApi +parent: IBinanceRestClientGeneralApi grand_parent: Rest API documentation --- *[generated documentation]* -`BinanceClient > GeneralApi > IBinanceRestClientSubAccount` +`BinanceRestClient > GeneralApi > SubAccount` *Binance Spot Subaccount endpoints* @@ -19,8 +19,8 @@ grand_parent: Rest API documentation *Create a virtual sub account* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientSubAccount.CreateVirtualSubAccountAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.SubAccount.CreateVirtualSubAccountAsync(/* parameters */); ``` ```csharp @@ -45,8 +45,8 @@ Task> CreateVirtualSubAccountAsync(string *Enable or disable blvt* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientSubAccount.EnableBlvtForSubAccountAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.SubAccount.EnableBlvtForSubAccountAsync(/* parameters */); ``` ```csharp @@ -72,8 +72,8 @@ Task> EnableBlvtForSubAccountAsync(string e *Enables futures for a sub account* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientSubAccount.EnableFuturesForSubAccountAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.SubAccount.EnableFuturesForSubAccountAsync(/* parameters */); ``` ```csharp @@ -98,8 +98,8 @@ Task> EnableFuturesForSubAccountA *Enables margin for a sub account* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientSubAccount.EnableMarginForSubAccountAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.SubAccount.EnableMarginForSubAccountAsync(/* parameters */); ``` ```csharp @@ -124,8 +124,8 @@ Task> EnableMarginForSubAccountAsy *Get the ip restriction for a sub-account* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientSubAccount.GetIpRestrictionForSubAccountApiKeyAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.SubAccount.GetIpRestrictionForSubAccountApiKeyAsync(/* parameters */); ``` ```csharp @@ -151,8 +151,8 @@ Task> GetIpRestrictionForSubAccountApiKeyAsy *Gets list of balances for a sub account* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientSubAccount.GetSubAccountAssetsAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.SubAccount.GetSubAccountAssetsAsync(/* parameters */); ``` ```csharp @@ -177,8 +177,8 @@ Task>> GetSubAccountAssetsAsync(string *Get BTC valued asset summary of subaccounts.* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientSubAccount.GetSubAccountBtcValuesAsync(); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.SubAccount.GetSubAccountBtcValuesAsync(); ``` ```csharp @@ -205,8 +205,8 @@ Task> GetSubAccountBtcValuesAs *Gets the deposit address for an asset to a sub account* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientSubAccount.GetSubAccountDepositAddressAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.SubAccount.GetSubAccountDepositAddressAsync(/* parameters */); ``` ```csharp @@ -233,8 +233,8 @@ Task> GetSubAccountDepositAddress *Gets the deposit history for a sub account* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientSubAccount.GetSubAccountDepositHistoryAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.SubAccount.GetSubAccountDepositHistoryAsync(/* parameters */); ``` ```csharp @@ -264,8 +264,8 @@ Task>> GetSubAccountDepositH *Gets futures details for a sub account* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientSubAccount.GetSubAccountFuturesDetailsAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.SubAccount.GetSubAccountFuturesDetailsAsync(/* parameters */); ``` ```csharp @@ -290,8 +290,8 @@ Task> GetSubAccountFuturesDetails *Gets futures details for a sub account* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientSubAccount.GetSubAccountFuturesDetailsAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.SubAccount.GetSubAccountFuturesDetailsAsync(/* parameters */); ``` ```csharp @@ -317,8 +317,8 @@ Task> GetSubAccountFuturesDetai *Gets margin details for a sub account* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientSubAccount.GetSubAccountMarginDetailsAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.SubAccount.GetSubAccountMarginDetailsAsync(/* parameters */); ``` ```csharp @@ -343,8 +343,8 @@ Task> GetSubAccountMarginDetailsAs *Gets a list of sub accounts associated with this master account* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientSubAccount.GetSubAccountsAsync(); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.SubAccount.GetSubAccountsAsync(); ``` ```csharp @@ -372,8 +372,8 @@ Task>> GetSubAccountsAsync(string? *Gets futures position risk for a sub account* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientSubAccount.GetSubAccountsFuturesPositionRiskAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.SubAccount.GetSubAccountsFuturesPositionRiskAsync(/* parameters */); ``` ```csharp @@ -398,8 +398,8 @@ Task>> GetSubAcc *Gets futures position risk for a sub account* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientSubAccount.GetSubAccountsFuturesPositionRiskAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.SubAccount.GetSubAccountsFuturesPositionRiskAsync(/* parameters */); ``` ```csharp @@ -425,8 +425,8 @@ Task> GetSubAccountsFuture *Gets futures summary for sub accounts* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientSubAccount.GetSubAccountsFuturesSummaryAsync(); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.SubAccount.GetSubAccountsFuturesSummaryAsync(); ``` ```csharp @@ -450,8 +450,8 @@ Task> GetSubAccountsFuturesSumma *Gets margin summary for sub accounts* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientSubAccount.GetSubAccountsMarginSummaryAsync(); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.SubAccount.GetSubAccountsMarginSummaryAsync(); ``` ```csharp @@ -475,8 +475,8 @@ Task> GetSubAccountsMarginSummary *Get Sub-account's Status on Margin/Futures(For Master Account)* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientSubAccount.GetSubAccountStatusAsync(); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.SubAccount.GetSubAccountStatusAsync(); ``` ```csharp @@ -501,8 +501,8 @@ Task>> GetSubAccountStatusAsy *Gets the transfer history of a sub account (from the master account)* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientSubAccount.GetSubAccountTransferHistoryForMasterAsync(); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.SubAccount.GetSubAccountTransferHistoryForMasterAsync(); ``` ```csharp @@ -532,8 +532,8 @@ Task>> GetSubAccountTransfe *Gets the transfer history of a sub account (from the sub account)* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientSubAccount.GetSubAccountTransferHistoryForSubAccountAsync(); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.SubAccount.GetSubAccountTransferHistoryForSubAccountAsync(); ``` ```csharp @@ -562,8 +562,8 @@ Task>> GetSubAcco *Gets a list of universal transfers* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientSubAccount.GetUniversalTransferHistoryAsync(); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.SubAccount.GetUniversalTransferHistoryAsync(); ``` ```csharp @@ -593,8 +593,8 @@ Task>> *Remove the ip restriction for a sub-account* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientSubAccount.RemoveIpRestrictionForSubAccountApiKeyAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.SubAccount.RemoveIpRestrictionForSubAccountApiKeyAsync(/* parameters */); ``` ```csharp @@ -621,8 +621,8 @@ Task> RemoveIpRestrictionForSubAccountApiKey *Transfers an asset form/to a sub account. If fromEmail or toEmail is not send it is interpreted as from/to the master account. Transfer between futures accounts is not supported* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientSubAccount.TransferSubAccountAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.SubAccount.TransferSubAccountAsync(/* parameters */); ``` ```csharp @@ -653,8 +653,8 @@ Task> TransferSubAccountAsync(TransferAccountT *Transfers from or to a futures sub account* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientSubAccount.TransferSubAccountFuturesAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.SubAccount.TransferSubAccountFuturesAsync(/* parameters */); ``` ```csharp @@ -682,8 +682,8 @@ Task> TransferSubAccountFuturesAsync *Transfers from or to a margin sub account* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientSubAccount.TransferSubAccountMarginAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.SubAccount.TransferSubAccountMarginAsync(/* parameters */); ``` ```csharp @@ -711,8 +711,8 @@ Task> TransferSubAccountMarginAsync( *Transfers to master account* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientSubAccount.TransferSubAccountToMasterAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.SubAccount.TransferSubAccountToMasterAsync(/* parameters */); ``` ```csharp @@ -738,8 +738,8 @@ Task> TransferSubAccountToMasterAsyn *Transfers to another sub account of the same master* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientSubAccount.TransferSubAccountToSubAccountAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.SubAccount.TransferSubAccountToSubAccountAsync(/* parameters */); ``` ```csharp @@ -766,8 +766,8 @@ Task> TransferSubAccountToSubAccount *Update the ip restriction for a sub-account* ```csharp -var client = new BinanceClient(); -var result = await client.GeneralApi.IBinanceRestClientSubAccount.UpdateIpRestrictionForSubAccountApiKeyAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.GeneralApi.SubAccount.UpdateIpRestrictionForSubAccountApiKeyAsync(/* parameters */); ``` ```csharp diff --git a/docs/ClientInfo/IBinanceRestClient.md b/docs/ClientInfo/IBinanceRestClient.md index ebbf32f02..bee23a95b 100644 --- a/docs/ClientInfo/IBinanceRestClient.md +++ b/docs/ClientInfo/IBinanceRestClient.md @@ -1,23 +1,23 @@ --- -title: IBinanceRestClient +title: Rest API documentation has_children: true --- *[generated documentation]* -### BinanceClient +### BinanceRestClient *Client for accessing the Binance Rest API.* *** *Coin futures API endpoints* -**IBinanceRestClientCoinFuturesApi CoinFuturesApi { get; }** +**[IBinanceRestClientCoinFuturesApi](CoinFuturesApi/IBinanceRestClientCoinFuturesApi.html) CoinFuturesApi { get; }** *** *General API endpoints* -**IBinanceRestClientGeneralApi GeneralApi { get; }** +**[IBinanceRestClientGeneralApi](GeneralApi/IBinanceRestClientGeneralApi.html) GeneralApi { get; }** *** *Set the API credentials for this client. All Api clients in this client will use the new credentials, regardless of earlier set options.* **void SetApiCredentials(ApiCredentials credentials);** *** *Spot API endpoints* -**IBinanceRestClientSpotApi SpotApi { get; }** +**[IBinanceRestClientSpotApi](SpotApi/IBinanceRestClientSpotApi.html) SpotApi { get; }** *** *Usd futures API endpoints* -**IBinanceRestClientUsdFuturesApi UsdFuturesApi { get; }** +**[IBinanceRestClientUsdFuturesApi](UsdFuturesApi/IBinanceRestClientUsdFuturesApi.html) UsdFuturesApi { get; }** diff --git a/docs/ClientInfo/SpotApi/IBinanceRestClientSpotApi.md b/docs/ClientInfo/SpotApi/IBinanceRestClientSpotApi.md index 77ae792ba..d7f6e0eb6 100644 --- a/docs/ClientInfo/SpotApi/IBinanceRestClientSpotApi.md +++ b/docs/ClientInfo/SpotApi/IBinanceRestClientSpotApi.md @@ -1,11 +1,10 @@ --- title: IBinanceRestClientSpotApi has_children: true -parent: IBinanceClientSpotApi -grand_parent: Rest API documentation +parent: Rest API documentation --- *[generated documentation]* -`BinanceClient > SpotApi > IBinanceRestClient` +`BinanceRestClient > SpotApi` *Binance Spot API endpoints* *** @@ -13,10 +12,10 @@ grand_parent: Rest API documentation **ISpotClient CommonSpotClient { get; }** *** *Endpoints related to account settings, info or actions* -**IBinanceRestClientSpotApiAccount Account { get; }** +**[IBinanceRestClientSpotApiAccount](IBinanceRestClientSpotApiAccount.html) Account { get; }** *** *Endpoints related to retrieving market and system data* -**IBinanceRestClientSpotApiExchangeData ExchangeData { get; }** +**[IBinanceRestClientSpotApiExchangeData](IBinanceRestClientSpotApiExchangeData.html) ExchangeData { get; }** *** *Endpoints related to orders and trades* -**IBinanceRestClientSpotApiTrading Trading { get; }** +**[IBinanceRestClientSpotApiTrading](IBinanceRestClientSpotApiTrading.html) Trading { get; }** diff --git a/docs/ClientInfo/SpotApi/IBinanceRestClientSpotApiAccount.md b/docs/ClientInfo/SpotApi/IBinanceRestClientSpotApiAccount.md index 265377509..bfd5e7faf 100644 --- a/docs/ClientInfo/SpotApi/IBinanceRestClientSpotApiAccount.md +++ b/docs/ClientInfo/SpotApi/IBinanceRestClientSpotApiAccount.md @@ -1,11 +1,11 @@ --- title: IBinanceRestClientSpotApiAccount has_children: false -parent: IBinanceClientSpotApi +parent: IBinanceRestClientSpotApi grand_parent: Rest API documentation --- *[generated documentation]* -`BinanceClient > SpotApi > IBinanceRestClientAccount` +`BinanceRestClient > SpotApi > Account` *Binance Spot account endpoints. Account endpoints include balance info, withdraw/deposit info and requesting and account settings* @@ -19,8 +19,8 @@ grand_parent: Rest API documentation *Close the user stream for margin account* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.CloseIsolatedMarginUserStreamAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.CloseIsolatedMarginUserStreamAsync(/* parameters */); ``` ```csharp @@ -45,8 +45,8 @@ Task> CloseIsolatedMarginUserStreamAsync(string symbol, st *Execute transfer between spot account and cross margin account.* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.CrossMarginTransferAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.CrossMarginTransferAsync(/* parameters */); ``` ```csharp @@ -74,8 +74,8 @@ Task> CrossMarginTransferAsync(string asset, d *You need to enable "trade" option for the api key which requests this endpoint.* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.DisableFastWithdrawSwitchAsync(); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.DisableFastWithdrawSwitchAsync(); ``` ```csharp @@ -99,8 +99,8 @@ Task> DisableFastWithdrawSwitchAsync(int? receiveWindow = *Disabled an isolated margin account info* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.DisableIsolatedMarginAccountAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.DisableIsolatedMarginAccountAsync(/* parameters */); ``` ```csharp @@ -125,8 +125,8 @@ Task> DisableIsolatedMarginAcco *Converts dust (small amounts of) assets to BNB* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.DustTransferAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.DustTransferAsync(/* parameters */); ``` ```csharp @@ -155,8 +155,8 @@ Task> DustTransferAsync(IEnumerable> EnableFastWithdrawSwitchAsync(int? receiveWindow = d *Enable an isolated margin account* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.EnableIsolatedMarginAccountAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.EnableIsolatedMarginAccountAsync(/* parameters */); ``` ```csharp @@ -206,8 +206,8 @@ Task> EnableIsolatedMarginAccou *Gets account information, including balances* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.GetAccountInfoAsync(); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.GetAccountInfoAsync(); ``` ```csharp @@ -231,8 +231,8 @@ Task> GetAccountInfoAsync(long? receiveWindow *Gets the status of the account associated with the api key/secret* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.GetAccountStatusAsync(); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.GetAccountStatusAsync(); ``` ```csharp @@ -256,8 +256,8 @@ Task> GetAccountStatusAsync(int? receiveWind *Get permission info for the current API key* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.GetAPIKeyPermissionsAsync(); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.GetAPIKeyPermissionsAsync(); ``` ```csharp @@ -281,8 +281,8 @@ Task> GetAPIKeyPermissionsAsync(int? rec *Get asset dividend records* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.GetAssetDividendRecordsAsync(); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.GetAssetDividendRecordsAsync(); ``` ```csharp @@ -309,8 +309,8 @@ Task>> GetAssetDividend *Get assets that can be converted to BNB* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.GetAssetsForDustTransferAsync(); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.GetAssetsForDustTransferAsync(); ``` ```csharp @@ -334,8 +334,8 @@ Task> GetAssetsForDustTransferAsync(int? re *Get auto conversion settings* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.GetAutoConvertStableCoinConfigAsync(); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.GetAutoConvertStableCoinConfigAsync(); ``` ```csharp @@ -359,8 +359,8 @@ Task> GetAutoConvertStableCoinConfi *Retrieve balance info* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.GetBalancesAsync(); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.GetBalancesAsync(); ``` ```csharp @@ -386,8 +386,8 @@ Task>> GetBalancesAsync(string? as *Gets the status of the BNB burn switch for spot trading and margin interest* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.GetBnbBurnStatusAsync(); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.GetBnbBurnStatusAsync(); ``` ```csharp @@ -411,8 +411,8 @@ Task> GetBnbBurnStatusAsync(int? receiveWind *Get history of transfers* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.GetCrossMarginTransferHistoryAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.GetCrossMarginTransferHistoryAsync(/* parameters */); ``` ```csharp @@ -441,8 +441,8 @@ Task>> GetCrossMarginT *Get a daily account snapshot (assets and positions)* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.GetDailyFutureAccountSnapshotAsync(); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.GetDailyFutureAccountSnapshotAsync(); ``` ```csharp @@ -469,8 +469,8 @@ Task>> GetDailyFutureAc *Get a daily account snapshot (assets)* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.GetDailyMarginAccountSnapshotAsync(); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.GetDailyMarginAccountSnapshotAsync(); ``` ```csharp @@ -497,8 +497,8 @@ Task>> GetDailyMarginAcc *Get a daily account snapshot (balances)* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.GetDailySpotAccountSnapshotAsync(); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.GetDailySpotAccountSnapshotAsync(); ``` ```csharp @@ -525,8 +525,8 @@ Task>> GetDailySpotAccount *Gets the deposit address for an asset* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.GetDepositAddressAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.GetDepositAddressAsync(/* parameters */); ``` ```csharp @@ -552,8 +552,8 @@ Task> GetDepositAddressAsync(string asset, *Gets the deposit history* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.GetDepositHistoryAsync(); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.GetDepositHistoryAsync(); ``` ```csharp @@ -583,8 +583,8 @@ Task>> GetDepositHistoryAsync(string? *Gets the history of dust conversions* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.GetDustLogAsync(); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.GetDustLogAsync(); ``` ```csharp @@ -610,8 +610,8 @@ Task> GetDustLogAsync(DateTime? startTime = de *Get max number of enabled isolated margin accounts* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.GetEnabledIsolatedMarginAccountLimitAsync(); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.GetEnabledIsolatedMarginAccountLimitAsync(); ``` ```csharp @@ -635,8 +635,8 @@ Task> GetEnabledIsolatedMarginAccountL *Get Fiat deposit/withdrawal history* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.GetFiatDepositWithdrawHistoryAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.GetFiatDepositWithdrawHistoryAsync(/* parameters */); ``` ```csharp @@ -665,8 +665,8 @@ Task>> GetFiatDepositWithd *Get Fiat payment history* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.GetFiatPaymentHistoryAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.GetFiatPaymentHistoryAsync(/* parameters */); ``` ```csharp @@ -695,8 +695,8 @@ Task>> GetFiatPaymentHistoryAsync( *Get funding wallet assets* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.GetFundingWalletAsync(); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.GetFundingWalletAsync(); ``` ```csharp @@ -722,8 +722,8 @@ Task>> GetFundingWalletAsync(stri *Get cross margin interest data* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.GetInterestMarginDataAsync(); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.GetInterestMarginDataAsync(); ``` ```csharp @@ -749,8 +749,8 @@ Task>> GetInterestMarginDat *Isolated margin account info* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.GetIsolatedMarginAccountAsync(); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.GetIsolatedMarginAccountAsync(); ``` ```csharp @@ -774,8 +774,8 @@ Task> GetIsolatedMarginAccountAsync( *Get history of transfer to and from the isolated margin account* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.GetIsolatedMarginAccountTransferHistoryAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.GetIsolatedMarginAccountTransferHistoryAsync(/* parameters */); ``` ```csharp @@ -807,8 +807,8 @@ Task>> GetIsola *Get isolated margin tier data* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.GetIsolatedMarginTierDataAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.GetIsolatedMarginTierDataAsync(/* parameters */); ``` ```csharp @@ -834,8 +834,8 @@ Task>> GetIsolatedMargi *Get leveraged tokens user limits* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.GetLeveragedTokensUserLimitAsync(); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.GetLeveragedTokensUserLimitAsync(); ``` ```csharp @@ -860,8 +860,8 @@ Task>> GetLeveragedTokensUserLim *Query margin account details* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.GetMarginAccountInfoAsync(); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.GetMarginAccountInfoAsync(); ``` ```csharp @@ -885,8 +885,8 @@ Task> GetMarginAccountInfoAsync(long? receiv *Gets the history of margin dust conversions* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.GetMarginDustLogAsync(); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.GetMarginDustLogAsync(); ``` ```csharp @@ -912,8 +912,8 @@ Task> GetMarginDustLogAsync(DateTime? startTim *Get history of forced liquidations* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.GetMarginForcedLiquidationHistoryAsync(); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.GetMarginForcedLiquidationHistoryAsync(); ``` ```csharp @@ -942,8 +942,8 @@ Task>> GetMarginForc *Get history of interest* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.GetMarginInterestHistoryAsync(); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.GetMarginInterestHistoryAsync(); ``` ```csharp @@ -974,8 +974,8 @@ Task>> GetMarginIntere *Get history of interest rate* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.GetMarginInterestRateHistoryAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.GetMarginInterestRateHistoryAsync(/* parameters */); ``` ```csharp @@ -1004,8 +1004,8 @@ Task>> GetMarginInterestRa *Get personal margin level information for your account* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.GetMarginLevelInformationAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.GetMarginLevelInformationAsync(/* parameters */); ``` ```csharp @@ -1030,8 +1030,8 @@ Task> GetMarginLevelInformationAsync(string em *Query loan records* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.GetMarginLoansAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.GetMarginLoansAsync(/* parameters */); ``` ```csharp @@ -1063,8 +1063,8 @@ Task>> GetMarginLoansAsync(string *Query max borrow quantity* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.GetMarginMaxBorrowAmountAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.GetMarginMaxBorrowAmountAsync(/* parameters */); ``` ```csharp @@ -1090,8 +1090,8 @@ Task> GetMarginMaxBorrowAmountAsync(string as *Query max transfer-out quantity* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.GetMarginMaxTransferAmountAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.GetMarginMaxTransferAmountAsync(/* parameters */); ``` ```csharp @@ -1116,8 +1116,8 @@ Task> GetMarginMaxTransferAmountAsync(string asset, strin *Get isolated margin order rate limits* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.GetMarginOrderRateLimitStatusAsync(); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.GetMarginOrderRateLimitStatusAsync(); ``` ```csharp @@ -1141,8 +1141,8 @@ Task>> GetMarginOrderRateLimi *Query repay records* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.GetMarginRepaysAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.GetMarginRepaysAsync(/* parameters */); ``` ```csharp @@ -1174,8 +1174,8 @@ Task>> GetMarginRepaysAsync(stri *Get the current used order rate limits* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.GetOrderRateLimitStatusAsync(); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.GetOrderRateLimitStatusAsync(); ``` ```csharp @@ -1199,8 +1199,8 @@ Task>> GetOrderRateLimitStatu *Portfolio margin account info* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.GetPortfolioMarginAccountInfoAsync(); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.GetPortfolioMarginAccountInfoAsync(); ``` ```csharp @@ -1224,8 +1224,8 @@ Task> GetPortfolioMarginAccountInfoAsy *Get portfolio margin bankrupty loan amount* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.GetPortfolioMarginBankruptcyLoanAsync(); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.GetPortfolioMarginBankruptcyLoanAsync(); ``` ```csharp @@ -1249,8 +1249,8 @@ Task> GetPortfolioMarginBankruptcyLoan *Get portfolio margin account collateral rates* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.GetPortfolioMarginCollateralRateAsync(); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.GetPortfolioMarginCollateralRateAsync(); ``` ```csharp @@ -1274,8 +1274,8 @@ Task>> GetPortfo *Get rebate history* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.GetRebateHistoryAsync(); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.GetRebateHistoryAsync(); ``` ```csharp @@ -1302,8 +1302,8 @@ Task> GetRebateHistoryAsync(DateTime? startT *Get personal staking quota* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.GetStakingPersonalQuotaAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.GetStakingPersonalQuotaAsync(/* parameters */); ``` ```csharp @@ -1329,8 +1329,8 @@ Task> GetStakingPersonalQuotaAsync(St *Gets the trading status for the current account* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.GetTradingStatusAsync(); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.GetTradingStatusAsync(); ``` ```csharp @@ -1354,8 +1354,8 @@ Task> GetTradingStatusAsync(int? receiveWind *Get transfer history* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.GetTransfersAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.GetTransfersAsync(/* parameters */); ``` ```csharp @@ -1384,8 +1384,8 @@ Task>> GetTransfersAsync(Univ *Gets information of assets for a user* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.GetUserAssetsAsync(); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.GetUserAssetsAsync(); ``` ```csharp @@ -1409,8 +1409,8 @@ Task>> GetUserAssetsAsync(int? recei *Gets the withdrawal history* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.GetWithdrawalHistoryAsync(); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.GetWithdrawalHistoryAsync(); ``` ```csharp @@ -1441,8 +1441,8 @@ Task>> GetWithdrawalHistoryAsync(st *Transfer from or to isolated margin account* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.IsolatedMarginAccountTransferAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.IsolatedMarginAccountTransferAsync(/* parameters */); ``` ```csharp @@ -1472,8 +1472,8 @@ Task> IsolatedMarginAccountTransferAsync(strin *Stream auto closes after 60 minutes if no keep alive is send. 30 minute interval for keep alive is recommended.* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.KeepAliveIsolatedMarginUserStreamAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.KeepAliveIsolatedMarginUserStreamAsync(/* parameters */); ``` ```csharp @@ -1498,8 +1498,8 @@ Task> KeepAliveIsolatedMarginUserStreamAsync(string symbol *Sends a keep alive for the current user stream listen key to keep the stream from closing. Stream auto closes after 60 minutes if no keep alive is send. 30 minute interval for keep alive is recommended.* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.KeepAliveMarginUserStreamAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.KeepAliveMarginUserStreamAsync(/* parameters */); ``` ```csharp @@ -1523,8 +1523,8 @@ Task> KeepAliveMarginUserStreamAsync(string listenKey, Can *Sends a keep alive for the current user stream listen key to keep the stream from closing. Stream auto closes after 60 minutes if no keep alive is send. 30 minute interval for keep alive is recommended.* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.KeepAliveUserStreamAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.KeepAliveUserStreamAsync(/* parameters */); ``` ```csharp @@ -1548,8 +1548,8 @@ Task> KeepAliveUserStreamAsync(string listenKey, Cancellat *Borrow. Apply for a loan.* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.MarginBorrowAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.MarginBorrowAsync(/* parameters */); ``` ```csharp @@ -1577,8 +1577,8 @@ Task> MarginBorrowAsync(string asset, decimal *Repay loan for margin account.* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.MarginRepayAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.MarginRepayAsync(/* parameters */); ``` ```csharp @@ -1606,8 +1606,8 @@ Task> MarginRepayAsync(string asset, decimal q *Repay portfolio margin bankruptcy loan* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.PortfolioMarginBankruptcyLoanRepayAsync(); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.PortfolioMarginBankruptcyLoanRepayAsync(); ``` ```csharp @@ -1630,8 +1630,8 @@ Task> PortfolioMarginBankruptcyLoanRepayAsync( *Set auto conversion configuration* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.SetAutoConvertStableCoinConfigAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.SetAutoConvertStableCoinConfigAsync(/* parameters */); ``` ```csharp @@ -1657,8 +1657,8 @@ Task SetAutoConvertStableCoinConfigAsync(string asset, bool enabl *Set auto staking for a product* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.SetAutoStakingAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.SetAutoStakingAsync(/* parameters */); ``` ```csharp @@ -1685,8 +1685,8 @@ Task> SetAutoStakingAsync(StakingProductType *Sets the status of the BNB burn switch for spot trading and margin interest* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.SetBnbBurnStatusAsync(); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.SetBnbBurnStatusAsync(); ``` ```csharp @@ -1714,8 +1714,8 @@ Task> SetBnbBurnStatusAsync(bool? spotTradin *The stream will close after 60 minutes unless a keep alive is send.* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.StartIsolatedMarginUserStreamAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.StartIsolatedMarginUserStreamAsync(/* parameters */); ``` ```csharp @@ -1739,8 +1739,8 @@ Task> StartIsolatedMarginUserStreamAsync(string symbol, Ca *Starts a user stream by requesting a listen key. This listen key can be used in subsequent requests to BinanceSocketClient.Futures.SubscribeToUserDataUpdates. The stream will close after 60 minutes unless a keep alive is send.* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.StartMarginUserStreamAsync(); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.StartMarginUserStreamAsync(); ``` ```csharp @@ -1763,8 +1763,8 @@ Task> StartMarginUserStreamAsync(CancellationToken ct = de *Starts a user stream by requesting a listen key. This listen key can be used in subsequent requests to SubscribeToUserDataUpdates. The stream will close after 60 minutes unless a keep alive is send.* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.StartUserStreamAsync(); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.StartUserStreamAsync(); ``` ```csharp @@ -1787,8 +1787,8 @@ Task> StartUserStreamAsync(CancellationToken ct = default) *Stops the current user stream* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.StopMarginUserStreamAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.StopMarginUserStreamAsync(/* parameters */); ``` ```csharp @@ -1812,8 +1812,8 @@ Task> StopMarginUserStreamAsync(string listenKey, Cancella *Stops the current user stream* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.StopUserStreamAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.StopUserStreamAsync(/* parameters */); ``` ```csharp @@ -1837,8 +1837,8 @@ Task> StopUserStreamAsync(string listenKey, CancellationTo *Transfers between accounts* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.TransferAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.TransferAsync(/* parameters */); ``` ```csharp @@ -1867,8 +1867,8 @@ Task> TransferAsync(UniversalTransferType type *Withdraw assets from Binance to an address* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientAccount.WithdrawAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Account.WithdrawAsync(/* parameters */); ``` ```csharp diff --git a/docs/ClientInfo/SpotApi/IBinanceRestClientSpotApiExchangeData.md b/docs/ClientInfo/SpotApi/IBinanceRestClientSpotApiExchangeData.md index 41b504b97..2907019f7 100644 --- a/docs/ClientInfo/SpotApi/IBinanceRestClientSpotApiExchangeData.md +++ b/docs/ClientInfo/SpotApi/IBinanceRestClientSpotApiExchangeData.md @@ -1,11 +1,11 @@ --- title: IBinanceRestClientSpotApiExchangeData has_children: false -parent: IBinanceClientSpotApi +parent: IBinanceRestClientSpotApi grand_parent: Rest API documentation --- *[generated documentation]* -`BinanceClient > SpotApi > IBinanceRestClientExchangeData` +`BinanceRestClient > SpotApi > ExchangeData` *Binance Spot exchange data endpoints. Exchange data includes market data (tickers, order books, etc) and system status.* @@ -19,8 +19,8 @@ grand_parent: Rest API documentation *Gets compressed, aggregate trades. Trades that fill at the same time, from the same order, with the same price will have the quantity aggregated.* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientExchangeData.GetAggregatedTradeHistoryAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.ExchangeData.GetAggregatedTradeHistoryAsync(/* parameters */); ``` ```csharp @@ -48,8 +48,8 @@ Task>> GetAggregatedTradeHisto *Gets the withdraw/deposit details for an asset* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientExchangeData.GetAssetDetailsAsync(); +var client = new BinanceRestClient(); +var result = await client.SpotApi.ExchangeData.GetAssetDetailsAsync(); ``` ```csharp @@ -73,8 +73,8 @@ Task>> GetAssetDetailsAsyn *Gets the best price/quantity on the order book for a symbol.* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientExchangeData.GetBookPriceAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.ExchangeData.GetBookPriceAsync(/* parameters */); ``` ```csharp @@ -98,8 +98,8 @@ Task> GetBookPriceAsync(string symbol, Cancellat *Gets the best price/quantity on the order book for a symbol.* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientExchangeData.GetBookPricesAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.ExchangeData.GetBookPricesAsync(/* parameters */); ``` ```csharp @@ -123,8 +123,8 @@ Task>> GetBookPricesAsync(IEnumerabl *Gets the best price/quantity on the order book for all symbols.* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientExchangeData.GetBookPricesAsync(); +var client = new BinanceRestClient(); +var result = await client.SpotApi.ExchangeData.GetBookPricesAsync(); ``` ```csharp @@ -146,8 +146,8 @@ Task>> GetBookPricesAsync(Cancellati *Get cross margin collateral ratio* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientExchangeData.GetCrossMarginCollateralRatioAsync(); +var client = new BinanceRestClient(); +var result = await client.SpotApi.ExchangeData.GetCrossMarginCollateralRatioAsync(); ``` ```csharp @@ -171,8 +171,8 @@ Task>> GetCrossMarg *Gets current average price for a symbol* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientExchangeData.GetCurrentAvgPriceAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.ExchangeData.GetCurrentAvgPriceAsync(/* parameters */); ``` ```csharp @@ -196,8 +196,8 @@ Task> GetCurrentAvgPriceAsync(string symbol, *Gets information about the exchange including rate limits and symbol list* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientExchangeData.GetExchangeInfoAsync(); +var client = new BinanceRestClient(); +var result = await client.SpotApi.ExchangeData.GetExchangeInfoAsync(); ``` ```csharp @@ -220,8 +220,8 @@ Task> GetExchangeInfoAsync(CancellationToken *Get's information about the exchange including rate limits and information on the provided symbol* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientExchangeData.GetExchangeInfoAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.ExchangeData.GetExchangeInfoAsync(/* parameters */); ``` ```csharp @@ -245,8 +245,8 @@ Task> GetExchangeInfoAsync(string symbol, Can *Get's information about the exchange including rate limits and information on the provided symbols* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientExchangeData.GetExchangeInfoAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.ExchangeData.GetExchangeInfoAsync(/* parameters */); ``` ```csharp @@ -270,8 +270,8 @@ Task> GetExchangeInfoAsync(IEnumerable> GetExchangeInfoAsync(AccountType permis *Get's information about the exchange including rate limits and information on the provided symbols based on account permissions* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientExchangeData.GetExchangeInfoAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.ExchangeData.GetExchangeInfoAsync(/* parameters */); ``` ```csharp @@ -320,8 +320,8 @@ Task> GetExchangeInfoAsync(AccountType[] perm *Isolated margin symbol info* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientExchangeData.GetIsolatedMarginSymbolAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.ExchangeData.GetIsolatedMarginSymbolAsync(/* parameters */); ``` ```csharp @@ -346,8 +346,8 @@ Task> GetIsolatedMarginSymbolAsync(st *Isolated margin symbol info* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientExchangeData.GetIsolatedMarginSymbolsAsync(); +var client = new BinanceRestClient(); +var result = await client.SpotApi.ExchangeData.GetIsolatedMarginSymbolsAsync(); ``` ```csharp @@ -371,8 +371,8 @@ Task>> GetIsolatedMarginS *Get candlestick data for the provided symbol* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientExchangeData.GetKlinesAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.ExchangeData.GetKlinesAsync(/* parameters */); ``` ```csharp @@ -400,8 +400,8 @@ Task>> GetKlinesAsync(string symbol, Kl *Get blvt info* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientExchangeData.GetLeveragedTokenInfoAsync(); +var client = new BinanceRestClient(); +var result = await client.SpotApi.ExchangeData.GetLeveragedTokenInfoAsync(); ``` ```csharp @@ -425,8 +425,8 @@ Task>> GetLeveragedTokenInfoAsync(int *Get's historical klines* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientExchangeData.GetLeveragedTokensHistoricalKlinesAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.ExchangeData.GetLeveragedTokensHistoricalKlinesAsync(/* parameters */); ``` ```csharp @@ -455,8 +455,8 @@ Task>> GetLeveragedTokensHistoricalK *Get pool config* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientExchangeData.GetLiquidityPoolConfigurationAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.ExchangeData.GetLiquidityPoolConfigurationAsync(/* parameters */); ``` ```csharp @@ -481,8 +481,8 @@ Task>> GetLiquidityPoolConfigu *Get all swap pools* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientExchangeData.GetLiquidityPoolsAsync(); +var client = new BinanceRestClient(); +var result = await client.SpotApi.ExchangeData.GetLiquidityPoolsAsync(); ``` ```csharp @@ -506,8 +506,8 @@ Task>> GetLiquidityPoolsAsync(int? r *Get a margin asset* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientExchangeData.GetMarginAssetAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.ExchangeData.GetMarginAssetAsync(/* parameters */); ``` ```csharp @@ -531,8 +531,8 @@ Task> GetMarginAssetAsync(string asset, Cancel *Get all assets available for margin trading* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientExchangeData.GetMarginAssetsAsync(); +var client = new BinanceRestClient(); +var result = await client.SpotApi.ExchangeData.GetMarginAssetsAsync(); ``` ```csharp @@ -555,8 +555,8 @@ Task>> GetMarginAssetsAsync(Cancel *Get margin price index* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientExchangeData.GetMarginPriceIndexAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.ExchangeData.GetMarginPriceIndexAsync(/* parameters */); ``` ```csharp @@ -580,8 +580,8 @@ Task> GetMarginPriceIndexAsync(string sym *Get a margin pair* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientExchangeData.GetMarginSymbolAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.ExchangeData.GetMarginSymbolAsync(/* parameters */); ``` ```csharp @@ -605,8 +605,8 @@ Task> GetMarginSymbolAsync(string symbol, Cance *Get all asset pairs available for margin trading* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientExchangeData.GetMarginSymbolsAsync(); +var client = new BinanceRestClient(); +var result = await client.SpotApi.ExchangeData.GetMarginSymbolsAsync(); ``` ```csharp @@ -629,8 +629,8 @@ Task>> GetMarginSymbolsAsync(Cancel *Gets the order book for the provided symbol* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientExchangeData.GetOrderBookAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.ExchangeData.GetOrderBookAsync(/* parameters */); ``` ```csharp @@ -655,8 +655,8 @@ Task> GetOrderBookAsync(string symbol, int? limi *Gets the price of a symbol* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientExchangeData.GetPriceAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.ExchangeData.GetPriceAsync(/* parameters */); ``` ```csharp @@ -680,8 +680,8 @@ Task> GetPriceAsync(string symbol, CancellationToken *Gets the prices of symbols* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientExchangeData.GetPricesAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.ExchangeData.GetPricesAsync(/* parameters */); ``` ```csharp @@ -705,8 +705,8 @@ Task>> GetPricesAsync(IEnumerable>> GetPricesAsync(CancellationToken *NOTE: This is not an official endpoint and might be changed or removed at any point by Binance* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientExchangeData.GetProductsAsync(); +var client = new BinanceRestClient(); +var result = await client.SpotApi.ExchangeData.GetProductsAsync(); ``` ```csharp @@ -753,8 +753,8 @@ Task>> GetProductsAsync(CancellationTo *Gets the recent trades for a symbol* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientExchangeData.GetRecentTradesAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.ExchangeData.GetRecentTradesAsync(/* parameters */); ``` ```csharp @@ -779,8 +779,8 @@ Task>> GetRecentTradesAsync(strin *Get data based on the last x time, specified as windowSize* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientExchangeData.GetRollingWindowTickerAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.ExchangeData.GetRollingWindowTickerAsync(/* parameters */); ``` ```csharp @@ -805,8 +805,8 @@ Task> GetRollingWindowTickerAsync(string symbol, *Get data based on the last x time, specified as windowSize* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientExchangeData.GetRollingWindowTickersAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.ExchangeData.GetRollingWindowTickersAsync(/* parameters */); ``` ```csharp @@ -831,8 +831,8 @@ Task>> GetRollingWindowTickersAsync( *Requests the server for the local time* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientExchangeData.GetServerTimeAsync(); +var client = new BinanceRestClient(); +var result = await client.SpotApi.ExchangeData.GetServerTimeAsync(); ``` ```csharp @@ -855,8 +855,8 @@ Task> GetServerTimeAsync(CancellationToken ct = default) *Get avaialble staking products list* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientExchangeData.GetStakingProductsAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.ExchangeData.GetStakingProductsAsync(/* parameters */); ``` ```csharp @@ -884,8 +884,8 @@ Task>> GetStakingProductsAsync( *Gets the status of the Binance platform* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientExchangeData.GetSystemStatusAsync(); +var client = new BinanceRestClient(); +var result = await client.SpotApi.ExchangeData.GetSystemStatusAsync(); ``` ```csharp @@ -908,8 +908,8 @@ Task> GetSystemStatusAsync(CancellationToken *Get data regarding the last 24 hours for the provided symbol* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientExchangeData.GetTickerAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.ExchangeData.GetTickerAsync(/* parameters */); ``` ```csharp @@ -933,8 +933,8 @@ Task> GetTickerAsync(string symbol, CancellationToke *Get data regarding the last 24 hours for the provided symbols* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientExchangeData.GetTickersAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.ExchangeData.GetTickersAsync(/* parameters */); ``` ```csharp @@ -958,8 +958,8 @@ Task>> GetTickersAsync(IEnumerable>> GetTickersAsync(CancellationToken *Gets the trade fee for a symbol* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientExchangeData.GetTradeFeeAsync(); +var client = new BinanceRestClient(); +var result = await client.SpotApi.ExchangeData.GetTradeFeeAsync(); ``` ```csharp @@ -1008,8 +1008,8 @@ Task>> GetTradeFeeAsync(string? symbo *Gets the historical trades for a symbol* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientExchangeData.GetTradeHistoryAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.ExchangeData.GetTradeHistoryAsync(/* parameters */); ``` ```csharp @@ -1035,8 +1035,8 @@ Task>> GetTradeHistoryAsync(strin *Get candlestick data for the provided symbol. Returns modified kline data, optimized for the presentation of candlestick charts* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientExchangeData.GetUiKlinesAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.ExchangeData.GetUiKlinesAsync(/* parameters */); ``` ```csharp @@ -1064,8 +1064,8 @@ Task>> GetUiKlinesAsync(string symbol, *Pings the Binance API* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientExchangeData.PingAsync(); +var client = new BinanceRestClient(); +var result = await client.SpotApi.ExchangeData.PingAsync(); ``` ```csharp diff --git a/docs/ClientInfo/SpotApi/IBinanceRestClientSpotApiTrading.md b/docs/ClientInfo/SpotApi/IBinanceRestClientSpotApiTrading.md index 9c3d04bf9..699f4b1ab 100644 --- a/docs/ClientInfo/SpotApi/IBinanceRestClientSpotApiTrading.md +++ b/docs/ClientInfo/SpotApi/IBinanceRestClientSpotApiTrading.md @@ -1,11 +1,11 @@ --- title: IBinanceRestClientSpotApiTrading has_children: false -parent: IBinanceClientSpotApi +parent: IBinanceRestClientSpotApi grand_parent: Rest API documentation --- *[generated documentation]* -`BinanceClient > SpotApi > IBinanceRestClientTrading` +`BinanceRestClient > SpotApi > Trading` *Binance Spot trading endpoints, placing and mananging orders.* @@ -19,8 +19,8 @@ grand_parent: Rest API documentation *Add liquidity to a pool* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientTrading.AddToLiquidityPoolAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Trading.AddToLiquidityPoolAsync(/* parameters */); ``` ```csharp @@ -48,8 +48,8 @@ Task> AddToLiquidityPoolAsync(int poo *Calculate expected share quantity for adding liquidity in single or dual token.* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientTrading.AddToLiquidityPoolPreviewAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Trading.AddToLiquidityPoolPreviewAsync(/* parameters */); ``` ```csharp @@ -77,8 +77,8 @@ Task> AddToLiquidityPoolPreviewAsync(in *Cancel all active orders for a symbol* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientTrading.CancelAllMarginOrdersAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Trading.CancelAllMarginOrdersAsync(/* parameters */); ``` ```csharp @@ -104,8 +104,8 @@ Task>> CancelAllMarginOrdersAsync(st *Cancels all open orders on a symbol* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientTrading.CancelAllOrdersAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Trading.CancelAllOrdersAsync(/* parameters */); ``` ```csharp @@ -130,8 +130,8 @@ Task>> CancelAllOrdersAsync(string s *Cancels a pending margin oco order* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientTrading.CancelMarginOcoOrderAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Trading.CancelMarginOcoOrderAsync(/* parameters */); ``` ```csharp @@ -160,8 +160,8 @@ Task> CancelMarginOcoOrderAsync(string *Cancel an active order for margin account* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientTrading.CancelMarginOrderAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Trading.CancelMarginOrderAsync(/* parameters */); ``` ```csharp @@ -190,8 +190,8 @@ Task> CancelMarginOrderAsync(string symbol, long *Cancels a pending oco order* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientTrading.CancelOcoOrderAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Trading.CancelOcoOrderAsync(/* parameters */); ``` ```csharp @@ -219,8 +219,8 @@ Task> CancelOcoOrderAsync(string symbol, long *Cancels a pending order* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientTrading.CancelOrderAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Trading.CancelOrderAsync(/* parameters */); ``` ```csharp @@ -247,8 +247,8 @@ Task> CancelOrderAsync(string symbol, long? orde *Convert between BUSD and stablecoins* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientTrading.ConvertTransferAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Trading.ConvertTransferAsync(/* parameters */); ``` ```csharp @@ -276,8 +276,8 @@ Task> ConvertTransferAsync(string cl *Get Customer to Customer trade history* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientTrading.GetC2CTradeHistoryAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Trading.GetC2CTradeHistoryAsync(/* parameters */); ``` ```csharp @@ -306,8 +306,8 @@ Task>> GetC2CTradeHistoryAsync(Or *Get convert trade history* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientTrading.GetConvertTradeHistoryAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Trading.GetConvertTradeHistoryAsync(/* parameters */); ``` ```csharp @@ -333,8 +333,8 @@ Task>> GetConvertTradeHisto *Get convert transfer history* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientTrading.GetConvertTransferHistoryAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Trading.GetConvertTransferHistoryAsync(/* parameters */); ``` ```csharp @@ -364,8 +364,8 @@ Task>> GetConver *Get redemption records* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientTrading.GetLeveragedTokensRedemptionRecordsAsync(); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Trading.GetLeveragedTokensRedemptionRecordsAsync(); ``` ```csharp @@ -394,8 +394,8 @@ Task>> GetLeveragedTokensRedemp *Get subscription records* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientTrading.GetLeveragedTokensSubscriptionRecordsAsync(); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Trading.GetLeveragedTokensSubscriptionRecordsAsync(); ``` ```csharp @@ -424,8 +424,8 @@ Task>> GetLeveragedTokensSubs *Get liquidity info for a pool* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientTrading.GetLiquidityPoolInfoAsync(); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Trading.GetLiquidityPoolInfoAsync(); ``` ```csharp @@ -450,8 +450,8 @@ Task>> GetLiquidityPoolInfo *Get liquidity operation records* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientTrading.GetLiquidityPoolOperationRecordsAsync(); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Trading.GetLiquidityPoolOperationRecordsAsync(); ``` ```csharp @@ -481,8 +481,8 @@ Task>> GetLiquidityPoolOperatio *Get swap history records* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientTrading.GetLiquidityPoolSwapHistoryAsync(); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Trading.GetLiquidityPoolSwapHistoryAsync(); ``` ```csharp @@ -514,8 +514,8 @@ Task>> GetLiquidityPoolSwapHistory *Please be noted the quote is for reference only, the actual price will change as the liquidity changes, it's recommended to swap immediate after request a quote for slippage prevention.* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientTrading.GetLiquidityPoolSwapQuoteAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Trading.GetLiquidityPoolSwapQuoteAsync(/* parameters */); ``` ```csharp @@ -542,8 +542,8 @@ Task> GetLiquidityPoolSwapQuoteAsync(string quo *Retrieves data for a specific margin oco order. Either orderListId or listClientOrderId should be provided.* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientTrading.GetMarginOcoOrderAsync(); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Trading.GetMarginOcoOrderAsync(); ``` ```csharp @@ -571,8 +571,8 @@ Task> GetMarginOcoOrderAsync(string? sy *Retrieves a list of margin oco orders matching the parameters* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientTrading.GetMarginOcoOrdersAsync(); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Trading.GetMarginOcoOrdersAsync(); ``` ```csharp @@ -602,8 +602,8 @@ Task>> GetMarginOcoOrdersAs *Retrieves a list of open margin oco orders* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientTrading.GetMarginOpenOcoOrdersAsync(); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Trading.GetMarginOpenOcoOrdersAsync(); ``` ```csharp @@ -629,8 +629,8 @@ Task>> GetMarginOpenOcoOrde *Retrieves data for a specific margin account order. Either orderId or origClientOrderId should be provided.* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientTrading.GetMarginOrderAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Trading.GetMarginOrderAsync(/* parameters */); ``` ```csharp @@ -658,8 +658,8 @@ Task> GetMarginOrderAsync(string symbol, long? order *Gets all margin account orders for the provided symbol* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientTrading.GetMarginOrdersAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Trading.GetMarginOrdersAsync(/* parameters */); ``` ```csharp @@ -689,8 +689,8 @@ Task>> GetMarginOrdersAsync(string symbo *Gets all user margin account trades for provided symbol* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientTrading.GetMarginUserTradesAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Trading.GetMarginUserTradesAsync(/* parameters */); ``` ```csharp @@ -720,8 +720,8 @@ Task>> GetMarginUserTradesAsync(string s *Retrieves data for a specific oco order. Either orderListId or listClientOrderId should be provided.* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientTrading.GetOcoOrderAsync(); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Trading.GetOcoOrderAsync(); ``` ```csharp @@ -747,8 +747,8 @@ Task> GetOcoOrderAsync(long? orderListId = de *Retrieves a list of oco orders matching the parameters* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientTrading.GetOcoOrdersAsync(); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Trading.GetOcoOrdersAsync(); ``` ```csharp @@ -776,8 +776,8 @@ Task>> GetOcoOrdersAsync(long? fr *Gets a list of open margin account orders* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientTrading.GetOpenMarginOrdersAsync(); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Trading.GetOpenMarginOrdersAsync(); ``` ```csharp @@ -803,8 +803,8 @@ Task>> GetOpenMarginOrdersAsync(string? *Retrieves a list of open oco orders* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientTrading.GetOpenOcoOrdersAsync(); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Trading.GetOpenOcoOrdersAsync(); ``` ```csharp @@ -828,8 +828,8 @@ Task>> GetOpenOcoOrdersAsync(long *Gets a list of open orders* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientTrading.GetOpenOrdersAsync(); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Trading.GetOpenOrdersAsync(); ``` ```csharp @@ -854,8 +854,8 @@ Task>> GetOpenOrdersAsync(string? symbol *Retrieves data for a specific order. Either orderId or origClientOrderId should be provided.* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientTrading.GetOrderAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Trading.GetOrderAsync(/* parameters */); ``` ```csharp @@ -882,8 +882,8 @@ Task> GetOrderAsync(string symbol, long? orderId = d *Gets all orders for the provided symbol* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientTrading.GetOrdersAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Trading.GetOrdersAsync(/* parameters */); ``` ```csharp @@ -912,8 +912,8 @@ Task>> GetOrdersAsync(string symbol, lon *Get pay trade history* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientTrading.GetPayTradeHistoryAsync(); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Trading.GetPayTradeHistoryAsync(); ``` ```csharp @@ -940,8 +940,8 @@ Task>> GetPayTradeHistoryAsync(DateTi *Get prevented matches because of self trade prevention* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientTrading.GetPreventedTradesAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Trading.GetPreventedTradesAsync(/* parameters */); ``` ```csharp @@ -970,8 +970,8 @@ Task>> GetPreventedTradesAsync( *Get staking history* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientTrading.GetStakingHistoryAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Trading.GetStakingHistoryAsync(/* parameters */); ``` ```csharp @@ -1002,8 +1002,8 @@ Task>> GetStakingHistoryAsync(S *Get staking positions* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientTrading.GetStakingPositionsAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Trading.GetStakingPositionsAsync(/* parameters */); ``` ```csharp @@ -1031,8 +1031,8 @@ Task>> GetStakingPositionsAsyn *Gets user trades for provided symbol* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientTrading.GetUserTradesAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Trading.GetUserTradesAsync(/* parameters */); ``` ```csharp @@ -1062,8 +1062,8 @@ Task>> GetUserTradesAsync(string symbol, *Swap quote asset for base asset* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientTrading.LiquidityPoolSwapAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Trading.LiquidityPoolSwapAsync(/* parameters */); ``` ```csharp @@ -1090,8 +1090,8 @@ Task> LiquidityPoolSwapAsync(string quoteAsset *Places a new margin OCO(One cancels other) order* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientTrading.PlaceMarginOCOOrderAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Trading.PlaceMarginOCOOrderAsync(/* parameters */); ``` ```csharp @@ -1130,8 +1130,8 @@ Task> PlaceMarginOCOOrderAsync(string s *Margin account new order* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientTrading.PlaceMarginOrderAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Trading.PlaceMarginOrderAsync(/* parameters */); ``` ```csharp @@ -1168,8 +1168,8 @@ Task> PlaceMarginOrderAsync(string symbol, Ord *Places a new OCO(One cancels other) order* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientTrading.PlaceOcoOrderAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Trading.PlaceOcoOrderAsync(/* parameters */); ``` ```csharp @@ -1211,8 +1211,8 @@ Task> PlaceOcoOrderAsync(string symbol, Order *Places a new order* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientTrading.PlaceOrderAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Trading.PlaceOrderAsync(/* parameters */); ``` ```csharp @@ -1251,8 +1251,8 @@ Task> PlaceOrderAsync(string symbol, OrderSide *Places a new test order. Test orders are not actually being executed and just test the functionality.* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientTrading.PlaceTestOrderAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Trading.PlaceTestOrderAsync(/* parameters */); ``` ```csharp @@ -1291,8 +1291,8 @@ Task> PlaceTestOrderAsync(string symbol, Order *Purchase a staking product* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientTrading.PurchaseStakingProductAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Trading.PurchaseStakingProductAsync(/* parameters */); ``` ```csharp @@ -1320,8 +1320,8 @@ Task> PurchaseStakingProductAsync(St *Redeem a token* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientTrading.RedeemLeveragedTokenAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Trading.RedeemLeveragedTokenAsync(/* parameters */); ``` ```csharp @@ -1347,8 +1347,8 @@ Task> RedeemLeveragedTokenAsync(string to *Redeem a staking product* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientTrading.RedeemStakingProductAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Trading.RedeemStakingProductAsync(/* parameters */); ``` ```csharp @@ -1377,8 +1377,8 @@ Task> RedeemStakingProductAsync(StakingProdu *Remove liquidity from a pool* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientTrading.RemoveFromLiquidityPoolAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Trading.RemoveFromLiquidityPoolAsync(/* parameters */); ``` ```csharp @@ -1406,8 +1406,8 @@ Task> RemoveFromLiquidityPoolAsync(in *Calculate expected share quantity for removing liquidity in single or dual token.* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientTrading.RemoveFromLiquidityPoolPreviewAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Trading.RemoveFromLiquidityPoolPreviewAsync(/* parameters */); ``` ```csharp @@ -1434,8 +1434,8 @@ Task> RemoveFromLiquidityPoolPreviewAsy *Cancel an existing order and place a new order on the same symbol* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientTrading.ReplaceOrderAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Trading.ReplaceOrderAsync(/* parameters */); ``` ```csharp @@ -1477,8 +1477,8 @@ Task> ReplaceOrderAsync(string symbol, *Subscribe to a token* ```csharp -var client = new BinanceClient(); -var result = await client.SpotApi.IBinanceRestClientTrading.SubscribeLeveragedTokenAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.SpotApi.Trading.SubscribeLeveragedTokenAsync(/* parameters */); ``` ```csharp diff --git a/docs/ClientInfo/SpotApi/IBinanceSocketClientSpotApi.md b/docs/ClientInfo/SpotApi/IBinanceSocketClientSpotApi.md index 959382fee..088d20909 100644 --- a/docs/ClientInfo/SpotApi/IBinanceSocketClientSpotApi.md +++ b/docs/ClientInfo/SpotApi/IBinanceSocketClientSpotApi.md @@ -1,10 +1,10 @@ --- title: IBinanceSocketClientSpotApi has_children: true -parent: Rest API documentation +parent: Socket API documentation --- *[generated documentation]* -`BinanceClient > SpotApi` +`BinanceSocketClient > SpotApi` *Spot API socket subscriptions and requests* *** diff --git a/docs/ClientInfo/SpotApi/IBinanceSocketClientSpotApiAccount.md b/docs/ClientInfo/SpotApi/IBinanceSocketClientSpotApiAccount.md index e9eb5f1e8..48711acab 100644 --- a/docs/ClientInfo/SpotApi/IBinanceSocketClientSpotApiAccount.md +++ b/docs/ClientInfo/SpotApi/IBinanceSocketClientSpotApiAccount.md @@ -1,11 +1,11 @@ --- title: IBinanceSocketClientSpotApiAccount has_children: false -parent: IBinanceClientSpotApi -grand_parent: Rest API documentation +parent: IBinanceSocketClientSpotApi +grand_parent: Socket API documentation --- *[generated documentation]* -`BinanceClient > SpotApi > Account` +`BinanceSocketClient > SpotApi > Account` *Binance Spot Account socket requests and subscriptions* @@ -19,7 +19,7 @@ grand_parent: Rest API documentation *Gets account information, including balances* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.SpotApi.Account.GetAccountInfoAsync(); ``` @@ -43,7 +43,7 @@ Task>> GetAccountInfoAsync(IEnume *Get order rate limit status* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.SpotApi.Account.GetOrderRateLimitsAsync(); ``` @@ -67,7 +67,7 @@ Task>>> GetOrder *Sends a keep alive for the current user stream listen key to keep the stream from closing. Stream auto closes after 60 minutes if no keep alive is send. 30 minute interval for keep alive is recommended.* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.SpotApi.Account.KeepAliveUserStreamAsync(/* parameters */); ``` @@ -91,7 +91,7 @@ Task>> KeepAliveUserStreamAsync(string listen *Starts a user stream by requesting a listen key. This listen key can be used in a subsequent request to SubscribeToUserDataUpdates. The stream will close after 60 minutes unless a keep alive is send.* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.SpotApi.Account.StartUserStreamAsync(); ``` @@ -114,7 +114,7 @@ Task>> StartUserStreamAsync(); *Stops the current user stream* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.SpotApi.Account.StopUserStreamAsync(/* parameters */); ``` @@ -138,7 +138,7 @@ Task>> StopUserStreamAsync(string listenKey); *Subscribes to the account update stream. Prior to using this, the BinanceClient.Spot.UserStreams.StartUserStream method should be called.* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.SpotApi.Account.SubscribeToUserDataUpdatesAsync(/* parameters */); ``` diff --git a/docs/ClientInfo/SpotApi/IBinanceSocketClientSpotApiExchangeData.md b/docs/ClientInfo/SpotApi/IBinanceSocketClientSpotApiExchangeData.md index 84cbb01c1..cd5f2d6b9 100644 --- a/docs/ClientInfo/SpotApi/IBinanceSocketClientSpotApiExchangeData.md +++ b/docs/ClientInfo/SpotApi/IBinanceSocketClientSpotApiExchangeData.md @@ -1,11 +1,11 @@ --- title: IBinanceSocketClientSpotApiExchangeData has_children: false -parent: IBinanceClientSpotApi -grand_parent: Rest API documentation +parent: IBinanceSocketClientSpotApi +grand_parent: Socket API documentation --- *[generated documentation]* -`BinanceClient > SpotApi > ExchangeData` +`BinanceSocketClient > SpotApi > ExchangeData` *Binance Spot Exchange Data socket requests and subscriptions* @@ -19,7 +19,7 @@ grand_parent: Rest API documentation *Gets compressed, aggregate trades. Trades that fill at the same time, from the same order, with the same price will have the quantity aggregated.* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.SpotApi.ExchangeData.GetAggregatedTradeHistoryAsync(/* parameters */); ``` @@ -47,7 +47,7 @@ Task>>> Get *Gets the best price/quantity on the order book for a symbol.* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.SpotApi.ExchangeData.GetBookTickersAsync(); ``` @@ -71,7 +71,7 @@ Task>>> GetBookTickersA *Gets current average price for a symbol* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.SpotApi.ExchangeData.GetCurrentAvgPriceAsync(/* parameters */); ``` @@ -95,7 +95,7 @@ Task>> GetCurrentAvgPriceAsync(s *Gets information about the exchange including rate limits and symbol list* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.SpotApi.ExchangeData.GetExchangeInfoAsync(); ``` @@ -119,7 +119,7 @@ Task>> GetExchangeInfoAsync(IEnu *Get candlestick data for the provided symbol* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.SpotApi.ExchangeData.GetKlinesAsync(/* parameters */); ``` @@ -147,7 +147,7 @@ Task>>> GetKlinesAsync( *Gets the order book for the provided symbol* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.SpotApi.ExchangeData.GetOrderBookAsync(/* parameters */); ``` @@ -172,7 +172,7 @@ Task>> GetOrderBookAsync(string sym *Gets the recent trades for a symbol* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.SpotApi.ExchangeData.GetRecentTradesAsync(/* parameters */); ``` @@ -197,7 +197,7 @@ Task>>> GetRecen *Get data based on the last x time, specified as windowSize* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.SpotApi.ExchangeData.GetRollingWindowTickersAsync(/* parameters */); ``` @@ -221,7 +221,7 @@ Task>>> GetRoll *Get the server time* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.SpotApi.ExchangeData.GetServerTimeAsync(); ``` @@ -244,7 +244,7 @@ Task>> GetServerTimeAsync(); *Get data regarding the last 24 hours* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.SpotApi.ExchangeData.GetTickersAsync(); ``` @@ -268,7 +268,7 @@ Task>>> GetTickersAsync( *Gets the historical trades for a symbol* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.SpotApi.ExchangeData.GetTradeHistoryAsync(/* parameters */); ``` @@ -294,7 +294,7 @@ Task>>> GetTrade *Get candlestick data for the provided symbol. Returns modified kline data, optimized for the presentation of candlestick charts* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.SpotApi.ExchangeData.GetUIKlinesAsync(/* parameters */); ``` @@ -322,7 +322,7 @@ Task>>> GetUIKlinesAsyn *Ping to test connection* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.SpotApi.ExchangeData.PingAsync(); ``` @@ -345,7 +345,7 @@ Task>> PingAsync(); *Subscribes to the aggregated trades update stream for the provided symbol* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.SpotApi.ExchangeData.SubscribeToAggregatedTradeUpdatesAsync(/* parameters */); ``` @@ -371,7 +371,7 @@ Task> SubscribeToAggregatedTradeUpdatesAsync(IEnu *Subscribes to the aggregated trades update stream for the provided symbols* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.SpotApi.ExchangeData.SubscribeToAggregatedTradeUpdatesAsync(/* parameters */); ``` @@ -397,7 +397,7 @@ Task> SubscribeToAggregatedTradeUpdatesAsync(stri *Subscribes to mini ticker updates stream for all symbols* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.SpotApi.ExchangeData.SubscribeToAllMiniTickerUpdatesAsync(/* parameters */); ``` @@ -422,7 +422,7 @@ Task> SubscribeToAllMiniTickerUpdatesAsync(Action *Subscribe to rolling window ticker updates stream for all symbols* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.SpotApi.ExchangeData.SubscribeToAllRollingWindowTickerUpdatesAsync(/* parameters */); ``` @@ -448,7 +448,7 @@ Task> SubscribeToAllRollingWindowTickerUpdatesAsy *Subscribes to ticker updates stream for all symbols* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.SpotApi.ExchangeData.SubscribeToAllTickerUpdatesAsync(/* parameters */); ``` @@ -473,7 +473,7 @@ Task> SubscribeToAllTickerUpdatesAsync(Action> SubscribeToBlvtInfoUpdatesAsync(IEnumerable *Subscribes to leveraged token info updates* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.SpotApi.ExchangeData.SubscribeToBlvtInfoUpdatesAsync(/* parameters */); ``` @@ -525,7 +525,7 @@ Task> SubscribeToBlvtInfoUpdatesAsync(string toke *Subscribes to leveraged token kline updates* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.SpotApi.ExchangeData.SubscribeToBlvtKlineUpdatesAsync(/* parameters */); ``` @@ -552,7 +552,7 @@ Task> SubscribeToBlvtKlineUpdatesAsync(IEnumerabl *Subscribes to leveraged token kline updates* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.SpotApi.ExchangeData.SubscribeToBlvtKlineUpdatesAsync(/* parameters */); ``` @@ -579,7 +579,7 @@ Task> SubscribeToBlvtKlineUpdatesAsync(string tok *Subscribes to the book ticker update stream for the provided symbols* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.SpotApi.ExchangeData.SubscribeToBookTickerUpdatesAsync(/* parameters */); ``` @@ -605,7 +605,7 @@ Task> SubscribeToBookTickerUpdatesAsync(IEnumerab *Subscribes to the book ticker update stream for the provided symbol* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.SpotApi.ExchangeData.SubscribeToBookTickerUpdatesAsync(/* parameters */); ``` @@ -631,7 +631,7 @@ Task> SubscribeToBookTickerUpdatesAsync(string sy *Subscribes to the candlestick update stream for the provided symbols and intervals* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.SpotApi.ExchangeData.SubscribeToKlineUpdatesAsync(/* parameters */); ``` @@ -658,7 +658,7 @@ Task> SubscribeToKlineUpdatesAsync(IEnumerable> SubscribeToKlineUpdatesAsync(IEnumerable> SubscribeToKlineUpdatesAsync(string symbol, *Subscribes to the candlestick update stream for the provided symbol* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.SpotApi.ExchangeData.SubscribeToKlineUpdatesAsync(/* parameters */); ``` @@ -739,7 +739,7 @@ Task> SubscribeToKlineUpdatesAsync(string symbol, *Subscribes to mini ticker updates stream for a list of symbol* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.SpotApi.ExchangeData.SubscribeToMiniTickerUpdatesAsync(/* parameters */); ``` @@ -765,7 +765,7 @@ Task> SubscribeToMiniTickerUpdatesAsync(IEnumerab *Subscribes to mini ticker updates stream for a specific symbol* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.SpotApi.ExchangeData.SubscribeToMiniTickerUpdatesAsync(/* parameters */); ``` @@ -791,7 +791,7 @@ Task> SubscribeToMiniTickerUpdatesAsync(string sy *Subscribes to the depth update stream for the provided symbols* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.SpotApi.ExchangeData.SubscribeToOrderBookUpdatesAsync(/* parameters */); ``` @@ -818,7 +818,7 @@ Task> SubscribeToOrderBookUpdatesAsync(IEnumerabl *Subscribes to the order book updates for the provided symbol* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.SpotApi.ExchangeData.SubscribeToOrderBookUpdatesAsync(/* parameters */); ``` @@ -845,7 +845,7 @@ Task> SubscribeToOrderBookUpdatesAsync(string sym *Subscribes to the depth updates for the provided symbols* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.SpotApi.ExchangeData.SubscribeToPartialOrderBookUpdatesAsync(/* parameters */); ``` @@ -873,7 +873,7 @@ Task> SubscribeToPartialOrderBookUpdatesAsync(IEn *Subscribes to the depth updates for the provided symbol* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.SpotApi.ExchangeData.SubscribeToPartialOrderBookUpdatesAsync(/* parameters */); ``` @@ -901,7 +901,7 @@ Task> SubscribeToPartialOrderBookUpdatesAsync(str *Subscribe to rolling window ticker updates stream for a symbol* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.SpotApi.ExchangeData.SubscribeToRollingWindowTickerUpdatesAsync(/* parameters */); ``` @@ -928,7 +928,7 @@ Task> SubscribeToRollingWindowTickerUpdatesAsync( *Subscribes to ticker updates stream for a specific symbol* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.SpotApi.ExchangeData.SubscribeToTickerUpdatesAsync(/* parameters */); ``` @@ -954,7 +954,7 @@ Task> SubscribeToTickerUpdatesAsync(IEnumerable> SubscribeToTickerUpdatesAsync(string symbol *Subscribes to the trades update stream for the provided symbols* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.SpotApi.ExchangeData.SubscribeToTradeUpdatesAsync(/* parameters */); ``` @@ -1006,7 +1006,7 @@ Task> SubscribeToTradeUpdatesAsync(IEnumerable SpotApi > Trading` +`BinanceSocketClient > SpotApi > Trading` *Binance Spot Trading socket requests* @@ -19,7 +19,7 @@ grand_parent: Rest API documentation *Cancel all open orders for the symbol* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.SpotApi.Trading.CancelAllOrdersAsync(/* parameters */); ``` @@ -43,7 +43,7 @@ Task>>> CancelAllOrdersAsyn *Cancel an Oco order by either orderId or clientOrderId* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.SpotApi.Trading.CancelOcoOrderAsync(/* parameters */); ``` @@ -70,7 +70,7 @@ Task>> CancelOcoOrderAsync(strin *Cancel an order by either orderId or clientOrderId* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.SpotApi.Trading.CancelOrderAsync(/* parameters */); ``` @@ -97,7 +97,7 @@ Task>> CancelOrderAsync(string symbol, *Get an oco order by either orderId or clientOrderId* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.SpotApi.Trading.GetOcoOrderAsync(); ``` @@ -122,7 +122,7 @@ Task>> GetOcoOrderAsync(long? or *Get Oco order history* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.SpotApi.Trading.GetOcoOrdersAsync(); ``` @@ -149,7 +149,7 @@ Task>>> GetOcoOrders *Get open Oco orders* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.SpotApi.Trading.GetOpenOcoOrdersAsync(); ``` @@ -172,7 +172,7 @@ Task>>> GetOpenOcoOr *Get open orders* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.SpotApi.Trading.GetOpenOrdersAsync(); ``` @@ -196,7 +196,7 @@ Task>>> GetOpenOrdersAsync( *Get order by either orderId or clientOrderId* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.SpotApi.Trading.GetOrderAsync(/* parameters */); ``` @@ -222,7 +222,7 @@ Task>> GetOrderAsync(string symbol, int *Get order history* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.SpotApi.Trading.GetOrdersAsync(/* parameters */); ``` @@ -250,7 +250,7 @@ Task>>> GetOrdersAsync(stri *Get prevented trades because of self trade prevention* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.SpotApi.Trading.GetPreventedTradesAsync(/* parameters */); ``` @@ -278,7 +278,7 @@ Task>>> GetPrevent *Gets user trades for provided symbol* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.SpotApi.Trading.GetUserTradesAsync(/* parameters */); ``` @@ -307,7 +307,7 @@ Task>>> GetUserTradesAsync( *Places a new OCO(One cancels other) order* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.SpotApi.Trading.PlaceOcoOrderAsync(/* parameters */); ``` @@ -350,7 +350,7 @@ Task>> PlaceOcoOrderAsync(string *Places a new order* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.SpotApi.Trading.PlaceOrderAsync(/* parameters */); ``` @@ -387,7 +387,7 @@ Task>> PlaceOrderAsync(string sym *Places a new test order. Test orders are not actually being executed and just test the functionality.* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.SpotApi.Trading.PlaceTestOrderAsync(/* parameters */); ``` @@ -424,7 +424,7 @@ Task>> PlaceTestOrderAsync(string *Cancel an existing order and place a new order on the same symbol* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.SpotApi.Trading.ReplaceOrderAsync(/* parameters */); ``` diff --git a/docs/ClientInfo/UsdFuturesApi/IBinanceRestClientUsdFuturesApi.md b/docs/ClientInfo/UsdFuturesApi/IBinanceRestClientUsdFuturesApi.md index 2b5303c87..cb90eaf16 100644 --- a/docs/ClientInfo/UsdFuturesApi/IBinanceRestClientUsdFuturesApi.md +++ b/docs/ClientInfo/UsdFuturesApi/IBinanceRestClientUsdFuturesApi.md @@ -1,11 +1,10 @@ --- title: IBinanceRestClientUsdFuturesApi has_children: true -parent: IBinanceClientUsdFuturesApi -grand_parent: Rest API documentation +parent: Rest API documentation --- *[generated documentation]* -`BinanceClient > UsdFuturesApi > IBinanceRestClient` +`BinanceRestClient > UsdFuturesApi` *Binance USD futures API endpoints* *** @@ -13,10 +12,10 @@ grand_parent: Rest API documentation **IFuturesClient CommonFuturesClient { get; }** *** *Endpoints related to account settings, info or actions* -**IBinanceRestClientUsdFuturesApiAccount Account { get; }** +**[IBinanceRestClientUsdFuturesApiAccount](IBinanceRestClientUsdFuturesApiAccount.html) Account { get; }** *** *Endpoints related to retrieving market data* -**IBinanceRestClientUsdFuturesApiExchangeData ExchangeData { get; }** +**[IBinanceRestClientUsdFuturesApiExchangeData](IBinanceRestClientUsdFuturesApiExchangeData.html) ExchangeData { get; }** *** *Endpoints related to orders and trades* -**IBinanceRestClientUsdFuturesApiTrading Trading { get; }** +**[IBinanceRestClientUsdFuturesApiTrading](IBinanceRestClientUsdFuturesApiTrading.html) Trading { get; }** diff --git a/docs/ClientInfo/UsdFuturesApi/IBinanceRestClientUsdFuturesApiAccount.md b/docs/ClientInfo/UsdFuturesApi/IBinanceRestClientUsdFuturesApiAccount.md index 56b5245a5..d2de8979f 100644 --- a/docs/ClientInfo/UsdFuturesApi/IBinanceRestClientUsdFuturesApiAccount.md +++ b/docs/ClientInfo/UsdFuturesApi/IBinanceRestClientUsdFuturesApiAccount.md @@ -1,11 +1,11 @@ --- title: IBinanceRestClientUsdFuturesApiAccount has_children: false -parent: IBinanceClientUsdFuturesApi +parent: IBinanceRestClientUsdFuturesApi grand_parent: Rest API documentation --- *[generated documentation]* -`BinanceClient > UsdFuturesApi > IBinanceRestClientAccount` +`BinanceRestClient > UsdFuturesApi > Account` *Binance USD-M futures account endpoints. Account endpoints include balance info, withdraw/deposit info and requesting and account settings* @@ -19,8 +19,8 @@ grand_parent: Rest API documentation *Requests to change the initial leverage of the given symbol* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientAccount.ChangeInitialLeverageAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.Account.ChangeInitialLeverageAsync(/* parameters */); ``` ```csharp @@ -46,8 +46,8 @@ Task> ChangeInitialLeve *Change the margin type for an open position* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientAccount.ChangeMarginTypeAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.Account.ChangeMarginTypeAsync(/* parameters */); ``` ```csharp @@ -73,8 +73,8 @@ Task> ChangeMarginTypeAsync( *Gets account information, including balances* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientAccount.GetAccountInfoAsync(); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.Account.GetAccountInfoAsync(); ``` ```csharp @@ -98,8 +98,8 @@ Task> GetAccountInfoAsync(long? receive *Gets account balances* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientAccount.GetBalancesAsync(); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.Account.GetBalancesAsync(); ``` ```csharp @@ -123,8 +123,8 @@ Task>> GetBalancesAsy *Gets Notional and Leverage Brackets.* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientAccount.GetBracketsAsync(); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.Account.GetBracketsAsync(); ``` ```csharp @@ -148,8 +148,8 @@ Task>> GetBracketsAsync(s *Get download id for downloading transaction history* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientAccount.GetDownloadIdForTransactionHistoryAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.Account.GetDownloadIdForTransactionHistoryAsync(/* parameters */); ``` ```csharp @@ -174,8 +174,8 @@ Task> GetDownloadIdForTransactionHis *Get the download link for transaction history by download id* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientAccount.GetDownloadLinkForTransactionHistoryAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.Account.GetDownloadLinkForTransactionHistoryAsync(/* parameters */); ``` ```csharp @@ -200,8 +200,8 @@ Task> GetDownloadLinkForTransactionHis *Gets the income history for the futures account* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientAccount.GetIncomeHistoryAsync(); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.Account.GetIncomeHistoryAsync(); ``` ```csharp @@ -230,8 +230,8 @@ Task>> GetIncomeHistoryAs *Requests the margin change history for a specific symbol* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientAccount.GetMarginChangeHistoryAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.Account.GetMarginChangeHistoryAsync(/* parameters */); ``` ```csharp @@ -260,8 +260,8 @@ Task>> GetMar *Get user's Multi-Assets mode (Multi-Assets Mode or Single-Asset Mode) on Every symbol* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientAccount.GetMultiAssetsModeAsync(); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.Account.GetMultiAssetsModeAsync(); ``` ```csharp @@ -285,8 +285,8 @@ Task> GetMultiAssetsModeAsync(long? *Get position ADL quantile estimations* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientAccount.GetPositionAdlQuantileEstimationAsync(); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.Account.GetPositionAdlQuantileEstimationAsync(); ``` ```csharp @@ -311,8 +311,8 @@ Task>> GetPositionAd *Gets account information* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientAccount.GetPositionInformationAsync(); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.Account.GetPositionInformationAsync(); ``` ```csharp @@ -337,8 +337,8 @@ Task>> GetPositionInformat *Get user's position mode (Hedge Mode or One-way Mode ) on EVERY symbol* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientAccount.GetPositionModeAsync(); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.Account.GetPositionModeAsync(); ``` ```csharp @@ -362,8 +362,8 @@ Task> GetPositionModeAsync(long? recei *Gets the current status of the trading rules for the account* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientAccount.GetTradingStatusAsync(); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.Account.GetTradingStatusAsync(); ``` ```csharp @@ -387,8 +387,8 @@ Task> GetTradingStatusAsync(int? rece *Gets account commission rates* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientAccount.GetUserCommissionRateAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.Account.GetUserCommissionRateAsync(/* parameters */); ``` ```csharp @@ -413,8 +413,8 @@ Task> GetUserCommissionRa *Keep alive the user stream. This should be called every 30 minutes to prevent the user stream being stopped* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientAccount.KeepAliveUserStreamAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.Account.KeepAliveUserStreamAsync(/* parameters */); ``` ```csharp @@ -438,8 +438,8 @@ Task> KeepAliveUserStreamAsync(string listenKey, Cancellat *Change the margin on an open position* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientAccount.ModifyPositionMarginAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.Account.ModifyPositionMarginAsync(/* parameters */); ``` ```csharp @@ -467,8 +467,8 @@ Task> ModifyPositionMarginAsyn *Change user's position mode (Hedge Mode or One-way Mode ) on EVERY symbol* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientAccount.ModifyPositionModeAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.Account.ModifyPositionModeAsync(/* parameters */); ``` ```csharp @@ -493,8 +493,8 @@ Task> ModifyPositionModeAsync(bool dualPositionSide *Set user's Multi-Assets mode (Multi-Assets Mode or Single-Asset Mode) on Every symbol* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientAccount.SetMultiAssetsModeAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.Account.SetMultiAssetsModeAsync(/* parameters */); ``` ```csharp @@ -519,8 +519,8 @@ Task> SetMultiAssetsModeAsync(bool enabled, long? r *Start a user stream. The resulting listen key can be used to subscribe to the user stream using the socket client* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientAccount.StartUserStreamAsync(); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.Account.StartUserStreamAsync(); ``` ```csharp @@ -543,8 +543,8 @@ Task> StartUserStreamAsync(CancellationToken ct = default) *Stop the user stream, no updates will be send anymore* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientAccount.StopUserStreamAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.Account.StopUserStreamAsync(/* parameters */); ``` ```csharp diff --git a/docs/ClientInfo/UsdFuturesApi/IBinanceRestClientUsdFuturesApiExchangeData.md b/docs/ClientInfo/UsdFuturesApi/IBinanceRestClientUsdFuturesApiExchangeData.md index db4334deb..e4d61d66a 100644 --- a/docs/ClientInfo/UsdFuturesApi/IBinanceRestClientUsdFuturesApiExchangeData.md +++ b/docs/ClientInfo/UsdFuturesApi/IBinanceRestClientUsdFuturesApiExchangeData.md @@ -1,11 +1,11 @@ --- title: IBinanceRestClientUsdFuturesApiExchangeData has_children: false -parent: IBinanceClientUsdFuturesApi +parent: IBinanceRestClientUsdFuturesApi grand_parent: Rest API documentation --- *[generated documentation]* -`BinanceClient > UsdFuturesApi > IBinanceRestClientExchangeData` +`BinanceRestClient > UsdFuturesApi > ExchangeData` *Binance USD-M futures exchange data endpoints. Exchange data includes market data (tickers, order books, etc) and system status.* @@ -19,8 +19,8 @@ grand_parent: Rest API documentation *Gets compressed, aggregate trades. Trades that fill at the time, from the same order, with the same price will have the quantity aggregated.* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientExchangeData.GetAggregatedTradeHistoryAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.ExchangeData.GetAggregatedTradeHistoryAsync(/* parameters */); ``` ```csharp @@ -48,8 +48,8 @@ Task>> GetAggregatedTradeHisto *Get asset index for Multi-Assets mode for a symbol* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientExchangeData.GetAssetIndexAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.ExchangeData.GetAssetIndexAsync(/* parameters */); ``` ```csharp @@ -73,8 +73,8 @@ Task> GetAssetIndexAsync(string symbol, *Get asset indexex for Multi-Assets mode for all symbols* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientExchangeData.GetAssetIndexesAsync(); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.ExchangeData.GetAssetIndexesAsync(); ``` ```csharp @@ -97,8 +97,8 @@ Task>> GetAssetIndexesAsync( *Gets the best price/quantity on the order book for a symbol.* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientExchangeData.GetBookPriceAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.ExchangeData.GetBookPriceAsync(/* parameters */); ``` ```csharp @@ -122,8 +122,8 @@ Task> GetBookPriceAsync(string symbol, Cancellat *Gets the best price/quantity on the order book.* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientExchangeData.GetBookPricesAsync(); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.ExchangeData.GetBookPricesAsync(); ``` ```csharp @@ -146,8 +146,8 @@ Task>> GetBookPricesAsync(Cancellati *Gets composite index info* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientExchangeData.GetCompositeIndexInfoAsync(); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.ExchangeData.GetCompositeIndexInfoAsync(); ``` ```csharp @@ -171,8 +171,8 @@ Task>> GetCompositeI *Get candlestick data for the provided pair* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientExchangeData.GetContinuousContractKlinesAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.ExchangeData.GetContinuousContractKlinesAsync(/* parameters */); ``` ```csharp @@ -201,8 +201,8 @@ Task>> GetContinuousContractKlinesAsync *Get's information about the exchange including rate limits and symbol list* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientExchangeData.GetExchangeInfoAsync(); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.ExchangeData.GetExchangeInfoAsync(); ``` ```csharp @@ -225,8 +225,8 @@ Task> GetExchangeInfoAsync(Cancell *Get funding rate history for the provided symbol* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientExchangeData.GetFundingRatesAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.ExchangeData.GetFundingRatesAsync(/* parameters */); ``` ```csharp @@ -253,8 +253,8 @@ Task>> GetFundingRat *Gets Global Long/Short Ratio (Accounts)* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientExchangeData.GetGlobalLongShortAccountRatioAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.ExchangeData.GetGlobalLongShortAccountRatioAsync(/* parameters */); ``` ```csharp @@ -282,8 +282,8 @@ Task>> GetGlobalLongShor *Get Kline/candlestick data for the index price of a pair.* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientExchangeData.GetIndexPriceKlinesAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.ExchangeData.GetIndexPriceKlinesAsync(/* parameters */); ``` ```csharp @@ -311,8 +311,8 @@ Task>> GetIndexPriceKlinesAsync(string *Get klines for a symbol* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientExchangeData.GetKlinesAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.ExchangeData.GetKlinesAsync(/* parameters */); ``` ```csharp @@ -340,8 +340,8 @@ Task>> GetKlinesAsync(string symbol, Kl *Get Mark Price and Funding Rate for the provided symbol* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientExchangeData.GetMarkPriceAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.ExchangeData.GetMarkPriceAsync(/* parameters */); ``` ```csharp @@ -365,8 +365,8 @@ Task> GetMarkPriceAsync(string symbol, Ca *Kline/candlestick bars for the mark price of a symbol* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientExchangeData.GetMarkPriceKlinesAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.ExchangeData.GetMarkPriceKlinesAsync(/* parameters */); ``` ```csharp @@ -394,8 +394,8 @@ Task>> GetMarkPriceKlinesAsync( *Get Mark Price and Funding Rate for all symbols* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientExchangeData.GetMarkPricesAsync(); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.ExchangeData.GetMarkPricesAsync(); ``` ```csharp @@ -418,8 +418,8 @@ Task>> GetMarkPricesAsync(Can *Get present open interest of a specific symbol.* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientExchangeData.GetOpenInterestAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.ExchangeData.GetOpenInterestAsync(/* parameters */); ``` ```csharp @@ -443,8 +443,8 @@ Task> GetOpenInterestAsync(string symb *Gets Open Interest History* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientExchangeData.GetOpenInterestHistoryAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.ExchangeData.GetOpenInterestHistoryAsync(/* parameters */); ``` ```csharp @@ -472,8 +472,8 @@ Task>> GetOpenInter *Gets the order book for the provided symbol* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientExchangeData.GetOrderBookAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.ExchangeData.GetOrderBookAsync(/* parameters */); ``` ```csharp @@ -498,8 +498,8 @@ Task> GetOrderBookAsync(string symbol, in *Gets the price of a symbol* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientExchangeData.GetPriceAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.ExchangeData.GetPriceAsync(/* parameters */); ``` ```csharp @@ -523,8 +523,8 @@ Task> GetPriceAsync(string symbol, CancellationToken *Get a list of the prices of all symbols* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientExchangeData.GetPricesAsync(); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.ExchangeData.GetPricesAsync(); ``` ```csharp @@ -547,8 +547,8 @@ Task>> GetPricesAsync(CancellationToken *Get the most recent trades for a symbol* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientExchangeData.GetRecentTradesAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.ExchangeData.GetRecentTradesAsync(/* parameters */); ``` ```csharp @@ -573,8 +573,8 @@ Task>> GetRecentTradesAsync(strin *Requests the server for the local time. This function also determines the offset between server and local time and uses this for subsequent API calls* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientExchangeData.GetServerTimeAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.ExchangeData.GetServerTimeAsync(/* parameters */); ``` ```csharp @@ -598,8 +598,8 @@ Task> GetServerTimeAsync(bool resetAutoTimestamp, Cancel *Gets Taker Buy/Sell Volume Ratio* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientExchangeData.GetTakerBuySellVolumeRatioAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.ExchangeData.GetTakerBuySellVolumeRatioAsync(/* parameters */); ``` ```csharp @@ -627,8 +627,8 @@ Task>> GetTakerBuySe *Get data regarding the last 24 hours change* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientExchangeData.GetTickerAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.ExchangeData.GetTickerAsync(/* parameters */); ``` ```csharp @@ -652,8 +652,8 @@ Task> GetTickerAsync(string symbol, Cancellation *Get data regarding the last 24 hours change* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientExchangeData.GetTickersAsync(); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.ExchangeData.GetTickersAsync(); ``` ```csharp @@ -676,8 +676,8 @@ Task>> GetTickersAsync(CancellationT *Gets Top Trader Long/Short Ratio (Accounts)* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientExchangeData.GetTopLongShortAccountRatioAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.ExchangeData.GetTopLongShortAccountRatioAsync(/* parameters */); ``` ```csharp @@ -705,8 +705,8 @@ Task>> GetTopLongShortAc *Gets Top Trader Long/Short Ratio (Positions)* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientExchangeData.GetTopLongShortPositionRatioAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.ExchangeData.GetTopLongShortPositionRatioAsync(/* parameters */); ``` ```csharp @@ -734,8 +734,8 @@ Task>> GetTopLongShortPo *Get trade history for a symbol* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientExchangeData.GetTradeHistoryAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.ExchangeData.GetTradeHistoryAsync(/* parameters */); ``` ```csharp @@ -761,8 +761,8 @@ Task>> GetTradeHistoryAsync(strin *Pings the Binance Futures API* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientExchangeData.PingAsync(); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.ExchangeData.PingAsync(); ``` ```csharp diff --git a/docs/ClientInfo/UsdFuturesApi/IBinanceRestClientUsdFuturesApiTrading.md b/docs/ClientInfo/UsdFuturesApi/IBinanceRestClientUsdFuturesApiTrading.md index da5cf6bfe..3ff57bbae 100644 --- a/docs/ClientInfo/UsdFuturesApi/IBinanceRestClientUsdFuturesApiTrading.md +++ b/docs/ClientInfo/UsdFuturesApi/IBinanceRestClientUsdFuturesApiTrading.md @@ -1,11 +1,11 @@ --- title: IBinanceRestClientUsdFuturesApiTrading has_children: false -parent: IBinanceClientUsdFuturesApi +parent: IBinanceRestClientUsdFuturesApi grand_parent: Rest API documentation --- *[generated documentation]* -`BinanceClient > UsdFuturesApi > IBinanceRestClientTrading` +`BinanceRestClient > UsdFuturesApi > Trading` *Binance USD-M futures trading endpoints, placing and mananging orders.* @@ -19,8 +19,8 @@ grand_parent: Rest API documentation *Cancel an algo order* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientTrading.CancelAlgoOrderAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.Trading.CancelAlgoOrderAsync(/* parameters */); ``` ```csharp @@ -46,8 +46,8 @@ Task> CancelAlgoOrderAsync(long algoOrderId, lo *so that the existing countdown time can be canceled and replaced by a new one.* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientTrading.CancelAllOrdersAfterTimeoutAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.Trading.CancelAllOrdersAfterTimeoutAsync(/* parameters */); ``` ```csharp @@ -73,8 +73,8 @@ Task> CancelAllOrdersAfterTimeoutAs *Cancels all open orders* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientTrading.CancelAllOrdersAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.Trading.CancelAllOrdersAsync(/* parameters */); ``` ```csharp @@ -99,8 +99,8 @@ Task> CancelAllOrdersAsync(string s *Cancels muliple orders* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientTrading.CancelMultipleOrdersAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.Trading.CancelMultipleOrdersAsync(/* parameters */); ``` ```csharp @@ -127,8 +127,8 @@ Task>>> CancelMu *Cancels a pending order* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientTrading.CancelOrderAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.Trading.CancelOrderAsync(/* parameters */); ``` ```csharp @@ -155,8 +155,8 @@ Task> CancelOrderAsync(string symbol, l *Get algo sub orders overview* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientTrading.GetAlgoSubOrdersAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.Trading.GetAlgoSubOrdersAsync(/* parameters */); ``` ```csharp @@ -183,8 +183,8 @@ Task> GetAlgoSubOrdersAsync(long algoId, *Get list of closed algo orders* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientTrading.GetClosedAlgoOrdersAsync(); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.Trading.GetClosedAlgoOrdersAsync(); ``` ```csharp @@ -214,8 +214,8 @@ Task> GetClosedAlgoOrdersAsync(string? symbol = *Gets a list of users forced orders* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientTrading.GetForcedOrdersAsync(); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.Trading.GetForcedOrdersAsync(); ``` ```csharp @@ -243,8 +243,8 @@ Task>> GetForcedOrdersAsync(strin *Get list of open algo orders* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientTrading.GetOpenAlgoOrdersAsync(); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.Trading.GetOpenAlgoOrdersAsync(); ``` ```csharp @@ -268,8 +268,8 @@ Task> GetOpenAlgoOrdersAsync(long? receiveWindo *Retrieves data for a specific open order. Either orderId or origClientOrderId should be provided.* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientTrading.GetOpenOrderAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.Trading.GetOpenOrderAsync(/* parameters */); ``` ```csharp @@ -296,8 +296,8 @@ Task> GetOpenOrderAsync(string symbol, long? *Gets a list of open orders* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientTrading.GetOpenOrdersAsync(); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.Trading.GetOpenOrdersAsync(); ``` ```csharp @@ -322,8 +322,8 @@ Task>> GetOpenOrdersAsync(string? *Retrieves data for a specific order. Either orderId or origClientOrderId should be provided.* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientTrading.GetOrderAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.Trading.GetOrderAsync(/* parameters */); ``` ```csharp @@ -350,8 +350,8 @@ Task> GetOrderAsync(string symbol, long? orde *Gets all orders for the provided symbol* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientTrading.GetOrdersAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.Trading.GetOrdersAsync(/* parameters */); ``` ```csharp @@ -380,8 +380,8 @@ Task>> GetOrdersAsync(string symb *Gets all user trades for provided symbol* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientTrading.GetUserTradesAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.Trading.GetUserTradesAsync(/* parameters */); ``` ```csharp @@ -411,8 +411,8 @@ Task>> GetUserTradesAsync(str *Place multiple orders in one call* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientTrading.PlaceMultipleOrdersAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.Trading.PlaceMultipleOrdersAsync(/* parameters */); ``` ```csharp @@ -437,8 +437,8 @@ Task>>> PlaceMul *Places a new order* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientTrading.PlaceOrderAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.Trading.PlaceOrderAsync(/* parameters */); ``` ```csharp @@ -478,8 +478,8 @@ Task> PlaceOrderAsync(string symbol, Or *Place a new Time Weighted Average Price order* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientTrading.PlaceTimeWeightedAveragePriceOrderAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.Trading.PlaceTimeWeightedAveragePriceOrderAsync(/* parameters */); ``` ```csharp @@ -511,8 +511,8 @@ Task> PlaceTimeWeightedAveragePriceOrderAs *Place a new Volume Participation order* ```csharp -var client = new BinanceClient(); -var result = await client.UsdFuturesApi.IBinanceRestClientTrading.PlaceVolumeParticipationOrderAsync(/* parameters */); +var client = new BinanceRestClient(); +var result = await client.UsdFuturesApi.Trading.PlaceVolumeParticipationOrderAsync(/* parameters */); ``` ```csharp diff --git a/docs/ClientInfo/UsdFuturesApi/IBinanceSocketClientUsdFuturesApi.md b/docs/ClientInfo/UsdFuturesApi/IBinanceSocketClientUsdFuturesApi.md index 8dd8dcb81..22bff8af0 100644 --- a/docs/ClientInfo/UsdFuturesApi/IBinanceSocketClientUsdFuturesApi.md +++ b/docs/ClientInfo/UsdFuturesApi/IBinanceSocketClientUsdFuturesApi.md @@ -1,10 +1,10 @@ --- title: IBinanceSocketClientUsdFuturesApi has_children: true -parent: Rest API documentation +parent: Socket API documentation --- *[generated documentation]* -`BinanceClient > UsdFuturesApi` +`BinanceSocketClient > UsdFuturesApi` *Binance USD futures streams* @@ -18,7 +18,7 @@ parent: Rest API documentation *Subscribes to the aggregated trades update stream for the provided symbol* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.UsdFuturesApi.SubscribeToAggregatedTradeUpdatesAsync(/* parameters */); ``` @@ -44,7 +44,7 @@ Task> SubscribeToAggregatedTradeUpdatesAsync(stri *Subscribes to the aggregated trades update stream for the provided symbols* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.UsdFuturesApi.SubscribeToAggregatedTradeUpdatesAsync(/* parameters */); ``` @@ -70,7 +70,7 @@ Task> SubscribeToAggregatedTradeUpdatesAsync(IEnu *Subscribes to all book ticker update streams* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.UsdFuturesApi.SubscribeToAllBookTickerUpdatesAsync(/* parameters */); ``` @@ -95,7 +95,7 @@ Task> SubscribeToAllBookTickerUpdatesAsync(Action *Subscribes to all forced liquidations stream* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.UsdFuturesApi.SubscribeToAllLiquidationUpdatesAsync(/* parameters */); ``` @@ -120,7 +120,7 @@ Task> SubscribeToAllLiquidationUpdatesAsync(Actio *Subscribes to the Mark price update stream for a all symbols* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.UsdFuturesApi.SubscribeToAllMarkPriceUpdatesAsync(/* parameters */); ``` @@ -146,7 +146,7 @@ Task> SubscribeToAllMarkPriceUpdatesAsync(int? up *Subscribes to mini ticker updates stream for all symbols* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.UsdFuturesApi.SubscribeToAllMiniTickerUpdatesAsync(/* parameters */); ``` @@ -171,7 +171,7 @@ Task> SubscribeToAllMiniTickerUpdatesAsync(Action *Subscribes to ticker updates stream for all symbols* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.UsdFuturesApi.SubscribeToAllTickerUpdatesAsync(/* parameters */); ``` @@ -196,7 +196,7 @@ Task> SubscribeToAllTickerUpdatesAsync(Action> SubscribeToBookTickerUpdatesAsync(string sy *Subscribes to the book ticker update stream for the provided symbols* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.UsdFuturesApi.SubscribeToBookTickerUpdatesAsync(/* parameters */); ``` @@ -248,7 +248,7 @@ Task> SubscribeToBookTickerUpdatesAsync(IEnumerab *Subscribes to composite index updates stream for a symbol* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.UsdFuturesApi.SubscribeToCompositeIndexUpdatesAsync(/* parameters */); ``` @@ -274,7 +274,7 @@ Task> SubscribeToCompositeIndexUpdatesAsync(strin *Subscribes to the continuous contract candlestick update stream for the provided pair* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.UsdFuturesApi.SubscribeToContinuousContractKlineUpdatesAsync(/* parameters */); ``` @@ -302,7 +302,7 @@ Task> SubscribeToContinuousContractKlineUpdatesAs *Subscribes to the continuous contract candlestick update stream for the provided pairs* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.UsdFuturesApi.SubscribeToContinuousContractKlineUpdatesAsync(/* parameters */); ``` @@ -330,7 +330,7 @@ Task> SubscribeToContinuousContractKlineUpdatesAs *Subscribes to the candlestick update stream for the provided symbol* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.UsdFuturesApi.SubscribeToKlineUpdatesAsync(/* parameters */); ``` @@ -357,7 +357,7 @@ Task> SubscribeToKlineUpdatesAsync(string symbol, *Subscribes to the candlestick update stream for the provided symbol and intervals* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.UsdFuturesApi.SubscribeToKlineUpdatesAsync(/* parameters */); ``` @@ -384,7 +384,7 @@ Task> SubscribeToKlineUpdatesAsync(string symbol, *Subscribes to the candlestick update stream for the provided symbols* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.UsdFuturesApi.SubscribeToKlineUpdatesAsync(/* parameters */); ``` @@ -411,7 +411,7 @@ Task> SubscribeToKlineUpdatesAsync(IEnumerable> SubscribeToKlineUpdatesAsync(IEnumerable> SubscribeToLiquidationUpdatesAsync(string s *Subscribes to list of symbol forced liquidations stream* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.UsdFuturesApi.SubscribeToLiquidationUpdatesAsync(/* parameters */); ``` @@ -490,7 +490,7 @@ Task> SubscribeToLiquidationUpdatesAsync(IEnumera *Subscribes to the Mark price update stream for a single symbol* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.UsdFuturesApi.SubscribeToMarkPriceUpdatesAsync(/* parameters */); ``` @@ -517,7 +517,7 @@ Task> SubscribeToMarkPriceUpdatesAsync(string sym *Subscribes to the Mark price update stream for a list of symbols* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.UsdFuturesApi.SubscribeToMarkPriceUpdatesAsync(/* parameters */); ``` @@ -544,7 +544,7 @@ Task> SubscribeToMarkPriceUpdatesAsync(IEnumerabl *Subscribes to mini ticker updates stream for a specific symbol* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.UsdFuturesApi.SubscribeToMiniTickerUpdatesAsync(/* parameters */); ``` @@ -570,7 +570,7 @@ Task> SubscribeToMiniTickerUpdatesAsync(string sy *Subscribes to mini ticker updates stream for a list of symbol* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.UsdFuturesApi.SubscribeToMiniTickerUpdatesAsync(/* parameters */); ``` @@ -596,7 +596,7 @@ Task> SubscribeToMiniTickerUpdatesAsync(IEnumerab *Subscribes to the order book updates for the provided symbol* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.UsdFuturesApi.SubscribeToOrderBookUpdatesAsync(/* parameters */); ``` @@ -623,7 +623,7 @@ Task> SubscribeToOrderBookUpdatesAsync(string sym *Subscribes to the depth update stream for the provided symbols* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.UsdFuturesApi.SubscribeToOrderBookUpdatesAsync(/* parameters */); ``` @@ -650,7 +650,7 @@ Task> SubscribeToOrderBookUpdatesAsync(IEnumerabl *Subscribes to the depth updates for the provided symbol* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.UsdFuturesApi.SubscribeToPartialOrderBookUpdatesAsync(/* parameters */); ``` @@ -678,7 +678,7 @@ Task> SubscribeToPartialOrderBookUpdatesAsync(str *Subscribes to the depth updates for the provided symbols* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.UsdFuturesApi.SubscribeToPartialOrderBookUpdatesAsync(/* parameters */); ``` @@ -705,7 +705,7 @@ Task> SubscribeToPartialOrderBookUpdatesAsync(IEn *Subscribe to contract/symbol updates* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.UsdFuturesApi.SubscribeToSymbolUpdatesAsync(/* parameters */); ``` @@ -730,7 +730,7 @@ Task> SubscribeToSymbolUpdatesAsync(Action> SubscribeToTickerUpdatesAsync(string symbol *Subscribes to ticker updates stream for a specific symbol* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.UsdFuturesApi.SubscribeToTickerUpdatesAsync(/* parameters */); ``` @@ -781,7 +781,7 @@ Task> SubscribeToTickerUpdatesAsync(IEnumerable> SubscribeToTradeUpdatesAsync(string symbol, *Subscribe to individual trade update. NOTE: This endpoint stream isn't document and therefor might be changed or removed without prior notice* ```csharp -var client = new BinanceClient(); +var client = new BinanceSocketClient(); var result = await client.UsdFuturesApi.SubscribeToTradeUpdatesAsync(/* parameters */); ``` @@ -832,7 +832,7 @@ Task> SubscribeToTradeUpdatesAsync(IEnumerable