CryBroWSMessageAdapter

StockSharp.CryBro.WS

Message adapter for CryBroWS WebSocket gate — connects to WsGate and translates StockSharp messages to/from WsRelay JSON protocol.

Herda de: MessageAdapter

Implementa: IKeySecretAdapter

Construtores

CryBroWSMessageAdapter(IdGenerator)

Initializes a new instance of the CryBroWSMessageAdapter.

Propriedades

Address : string

WebSocket server address (e.g. ws://localhost:20000/ws).

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.

Métodos

IsAllDownloadingSupported(DataType) : bool

Is for the specified all securities downloading enabled.

dataType
Data type info.

Retorna: Check result.

IsSupportCandlesPriceLevels(MarketDataMessage) : bool

Support candles PriceLevels.

subscription
MarketDataMessage

Retorna: Check result.

IsSupportCandlesUpdates(MarketDataMessage) : bool

Support candles subscription and live updates.

subscription
MarketDataMessage

Retorna: Check result.

Load(SettingsStorage)

Load settings.

storage
Settings storage.
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.

Retorna: 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.

Retorna: 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.

Retorna: 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.

Retorna: A ValueTask representing the asynchronous operation.

Save(SettingsStorage)

Save settings.

storage
Settings storage.
ToString() : string

Преобразовать к строковому представлению.

Retorna: Строковое представление.