mirror of
https://github.com/JKorf/CryptoExchange.Net.git
synced 2026-10-19 01:20:56 +00:00
32 lines
1.2 KiB
C#
32 lines
1.2 KiB
C#
using CryptoExchange.Net.Objects;
|
|
|
|
namespace CryptoExchange.Net.SharedApis
|
|
{
|
|
/// <summary>
|
|
/// Request to subscribe to balance updates
|
|
/// </summary>
|
|
public record SubscribeBalancesRequest: SharedRequest
|
|
{
|
|
/// <summary>
|
|
/// Trading mode
|
|
/// </summary>
|
|
public TradingMode? TradingMode { get; set; }
|
|
/// <summary>
|
|
/// The listen key, needed for some exchanges. Can be obtained by the StartListenKeyAsync on the shared rest client
|
|
/// </summary>
|
|
public string? ListenKey { get; set; }
|
|
|
|
/// <summary>
|
|
/// ctor
|
|
/// </summary>
|
|
/// <param name="listenKey">Listen key, needed for some exchanges. Can be obtained by the StartListenKeyAsync on the shared rest client</param>
|
|
/// <param name="tradingMode">Trading mode</param>
|
|
/// <param name="exchangeParameters">Exchange specific parameters</param>
|
|
public SubscribeBalancesRequest(string? listenKey = null, TradingMode? tradingMode = null, ExchangeParameters? exchangeParameters = null) : base(exchangeParameters)
|
|
{
|
|
TradingMode = tradingMode;
|
|
ListenKey = listenKey;
|
|
}
|
|
}
|
|
}
|