WsClient
StockSharp.CryBro.WS.Native
WebSocket client for CryBroWS WsGate. Wraps WebSocketClient, implements IConnection. Events return native DTOs — adapter converts to StockSharp messages.
Herda de: BaseLogReceiver
Implementa: IConnection
Propriedades
ClientId
public string ClientId { get; private set; }
value = wsClient.ClientId
wsClient.ClientId = value
Client ID assigned by the server in the hello frame.
Métodos
ComputeSignature
private static string ComputeSignature(string secret, string keyId, long timestamp, string nonce)
result = WsClient.ComputeSignature(secret, keyId, timestamp, nonce)
HMAC-SHA256 over keyId\nts\nnonce\n keyed by the secret, lowercase hex. Mirrors the server-side ApiKeyService.ComputeSignature.