Signing a request
To initiate a WebSocket connection to Anchorage Digital, the initial connection request header must be authenticated by including your API access key in theApi-Access-Key header and by providing an Ed25519 signature specifying the Api-Signature and Api-Timestamp headers. To register an API key for websocket trading, follow the Setup guide and assign the Execute trades (TRADE) permission to your API key.
Code example for creating and signing a request header: