mirror of
https://github.com/JKorf/CryptoExchange.Net.git
synced 2026-10-14 07:01:46 +00:00
36 lines
1.2 KiB
C#
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;
|
|
}
|
|
}
|
|
}
|