1
0
mirror of https://github.com/JKorf/CryptoExchange.Net.git synced 2026-11-07 10:47:52 +00:00
Files
CryptoExchange.Net/CryptoExchange.Net/SharedApis/V2/Balances/GetBalances/GetBalancesRequest.cs
T
Jan Korf ae7504c26c Shared API's V2 (#289)
Added V2 Shared API's infrastructure
Added request coalescing
Added rate limiting admission logic
Fixed some rate limiting issues
2026-09-23 09:15:39 +02:00

36 lines
1.2 KiB
C#

namespace CryptoExchange.Net.SharedApis
{
/// <summary>
/// Request to retrieve balance info for the user
/// </summary>
public record GetBalancesRequest : SharedRequest
{
/// <summary>
/// Account type
/// </summary>
public SharedAccountType? AccountType { get; set; }
/// <summary>
/// ctor
/// </summary>
/// <param name="tradingMode">Trading mode</param>
/// <param name="exchangeParameters">Exchange specific parameters</param>
public GetBalancesRequest(TradingMode tradingMode, ExchangeParameters? exchangeParameters = null)
: base(tradingMode, exchangeParameters)
{
AccountType = tradingMode.ToAccountType();
}
/// <summary>
/// ctor
/// </summary>
/// <param name="accountType">Account type</param>
/// <param name="exchangeParameters">Exchange specific parameters</param>
public GetBalancesRequest(SharedAccountType? accountType = null, ExchangeParameters? exchangeParameters = null)
: base(null, exchangeParameters)
{
AccountType = accountType;
}
}
}