WsClient

StockSharp.CryBro.WS.Native

WebSocket client for CryBroWS WsGate. Wraps WebSocketClient, implements IConnection. Events return native DTOs — adapter converts to StockSharp messages.

継承元: BaseLogReceiver

実装: IConnection

プロパティ

ClientId
public string ClientId { get; private set; }
value = wsClient.ClientId
wsClient.ClientId = value

Client ID assigned by the server in the hello frame.

メソッド

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.