Skip to content

Alpaca Streaming API

Oleg Rakhmatulin edited this page Jul 25, 2018 · 18 revisions

Alpaca Streaming API .NET Client

All WebSocket-based streaming messages described here are available for you via events of Alpaca.Markets.SockClient class. All these events provides you read-only interfaces for related JSON objects.

For creating instance of Alpaca.Markets.SockClient object you have to specify API ID, secret key and API endpoint URL. You have to call ConnectAsync method for connecting stream and DisconnectAsync() for disconnection. It also would be very helpful to dispose instance of Alpaca.Markets.SockClient object using standard .NET IDisposable pattern.

See usage examples for each event in unit test SockClientTest.cs.

Clone this wiki locally