Class AlpacaCryptoStreamingClientConfiguration
Configuration parameters object for IAlpacaCryptoStreamingClient instance.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Alpaca.Markets
Assembly: Alpaca.Markets.dll
Syntax
public sealed class AlpacaCryptoStreamingClientConfiguration : StreamingClientConfiguration
Constructors
| Improve this Doc View SourceAlpacaCryptoStreamingClientConfiguration()
Creates new instance of AlpacaCryptoStreamingClientConfiguration class.
Declaration
public AlpacaCryptoStreamingClientConfiguration()
Properties
| Improve this Doc View SourceExchanges
Gets crypto exchanges list for data subscription (empty list means 'all exchanges').
Declaration
public IReadOnlyCollection<CryptoExchange> Exchanges { get; }
Property Value
Type | Description |
---|---|
IReadOnlyCollection<CryptoExchange> |
Methods
| Improve this Doc View SourceWithExchanges(CryptoExchange[])
Creates new instance of AlpacaCryptoStreamingClientConfiguration object with the updated Exchanges list.
Declaration
public AlpacaCryptoStreamingClientConfiguration WithExchanges(params CryptoExchange[] exchanges)
Parameters
Type | Name | Description |
---|---|---|
CryptoExchange[] | exchanges | Crypto exchanges to add into the list. |
Returns
Type | Description |
---|---|
AlpacaCryptoStreamingClientConfiguration | The new instance of the AlpacaCryptoStreamingClientConfiguration object. |
WithExchanges(IEnumerable<CryptoExchange>)
Creates new instance of AlpacaCryptoStreamingClientConfiguration object with the updated Exchanges list.
Declaration
public AlpacaCryptoStreamingClientConfiguration WithExchanges(IEnumerable<CryptoExchange> exchanges)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<CryptoExchange> | exchanges | Crypto exchanges to add into the list. |
Returns
Type | Description |
---|---|
AlpacaCryptoStreamingClientConfiguration | The new instance of the AlpacaCryptoStreamingClientConfiguration object. |