mirror of
https://github.com/JKorf/CryptoExchange.Net
synced 2025-10-27 08:27:19 +00:00
37 lines
1.2 KiB
C#
37 lines
1.2 KiB
C#
using System.Collections.Generic;
|
|
|
|
namespace CryptoExchange.Net.SharedApis
|
|
{
|
|
/// <summary>
|
|
/// Request to subscribe to trade updates
|
|
/// </summary>
|
|
public record SubscribeTradeRequest : SharedSymbolRequest
|
|
{
|
|
/// <summary>
|
|
/// ctor
|
|
/// </summary>
|
|
/// <param name="symbol">The symbol to subscribe to</param>
|
|
/// <param name="exchangeParameters">Exchange specific parameters</param>
|
|
public SubscribeTradeRequest(SharedSymbol symbol, ExchangeParameters? exchangeParameters = null) : base(symbol, exchangeParameters)
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// ctor
|
|
/// </summary>
|
|
/// <param name="symbols">The symbols to subscribe to</param>
|
|
/// <param name="exchangeParameters">Exchange specific parameters</param>
|
|
public SubscribeTradeRequest(IEnumerable<SharedSymbol> symbols, ExchangeParameters? exchangeParameters = null) : base(symbols, exchangeParameters)
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// ctor
|
|
/// </summary>
|
|
/// <param name="symbols">The symbols to subscribe to</param>
|
|
public SubscribeTradeRequest(params SharedSymbol[] symbols) : base(symbols, null)
|
|
{
|
|
}
|
|
}
|
|
}
|