WsAuthKeyRequest

StockSharp.Ws

Client → server auth via API key. Used by programmatic clients (bots, SDKs) instead of the password flow. The Signature is HMAC-SHA256 over "${KeyId}\n${Timestamp}\n${Nonce}\n" with the API key secret — exchanges' standard wire shape. Reject if outside ±2 min skew or if (KeyId, Nonce) was seen recently (replay).

Properties

KeyId : string

Wire field keyId — the public id (ak_…). Looks up the secret server-side.

Nonce : string

Random per-request nonce. Server caches (keyId, nonce) for the skew window; duplicates are rejected as replays.

Signature : string

Hex HMAC-SHA256 signature of the canonical payload (lowercase).

Timestamp : long

Unix-seconds, UTC, when the request was signed.

Type : string

Wire field type.