CryBroWSMessageAdapter
Message adapter for CryBroWS WebSocket gate — connects to WsGate and translates StockSharp messages to/from WsRelay JSON protocol.
Inherits: MessageAdapter
Implements: IKeySecretAdapter
Constructors
CryBroWSMessageAdapter(IdGenerator)
Initializes a new instance of the CryBroWSMessageAdapter.
Properties
IsSupportOrderBookIncrements : bool
Adapter translates incremental order books.
Key : SecureString
Key.
Login : string
Login for the WsGate login/password flow. When set and no Key is configured, the adapter authenticates with login + Password instead of HMAC signing. The password may be a JWT — the same flow the web terminal uses.
Password : SecureString
Password (or JWT) paired with Login for the login/password flow.
Secret : SecureString
Secret.
Methods
IsAllDownloadingSupported(DataType) : bool
Is for the specified all securities downloading enabled.
- dataType
- Data type info.
Returns: Check result.
IsSupportCandlesPriceLevels(MarketDataMessage) : bool
Support candles PriceLevels.
- subscription
- MarketDataMessage
Returns: Check result.
IsSupportCandlesUpdates(MarketDataMessage) : bool
Support candles subscription and live updates.
- subscription
- MarketDataMessage
Returns: Check result.
OnLevel1SubscriptionAsync(MarketDataMessage, CancellationToken) : ValueTask
Handles subscription request for level1 data. Override to provide implementation for level1 subscription processing. The default implementation throws NotSupported.
- mdMsg
- Market data subscription message.
- cancellationToken
- Cancellation token to cancel the operation.
Returns: A ValueTask representing the asynchronous operation.
OnMarketDepthSubscriptionAsync(MarketDataMessage, CancellationToken) : ValueTask
Handles subscription request for market depth data. Override to provide implementation for market depth subscription processing. The default implementation throws NotSupported.
- mdMsg
- Market data subscription message.
- cancellationToken
- Cancellation token to cancel the operation.
Returns: A ValueTask representing the asynchronous operation.
OnTFCandlesSubscriptionAsync(MarketDataMessage, CancellationToken) : ValueTask
Handles subscription request for time-frame candles (TF candles) data. Override to provide implementation for TF candles subscription processing. The default implementation throws NotSupported.
- mdMsg
- Market data subscription message.
- cancellationToken
- Cancellation token to cancel the operation.
Returns: A ValueTask representing the asynchronous operation.
OnTicksSubscriptionAsync(MarketDataMessage, CancellationToken) : ValueTask
Handles subscription request for ticks data. Override to provide implementation for ticks subscription processing. The default implementation throws NotSupported.
- mdMsg
- Market data subscription message.
- cancellationToken
- Cancellation token to cancel the operation.
Returns: A ValueTask representing the asynchronous operation.