-
-
Notifications
You must be signed in to change notification settings - Fork 84
Alpaca Streaming API
Oleg Rakhmatulin edited this page Jul 25, 2018
·
18 revisions
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 disconnecting. 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.