Hi, I'm trying to do a simple query of a given RIC (USOILC=ECI) using the C# WebSocket API.
Unfortunately, every time I try and open a stream for the RIC, I end up with this error:
Stream error: 1/31/2023 8:43:47 AM: => {
"Error": "Failed to open OMM stream - streaming services are unavailable. Verify log details and ensure you have permissions."
}
Request completed.
I have verified that the credentials are working, as they work for a different RIC (market data bars) but they seem to not work for any streaming capability. Did I define the stream incorrectly? Or is this a permissions issue? I've posted my code below.
var stream = OMMStream.Definition("USOILC=ECI")
.GetStream().OnRefresh((item, msg, s) => Console.WriteLine(msg))
.OnUpdate((item, msg, s) => DumpMsg(item, msg))
.OnComplete(s => Console.WriteLine("Request completed."))
.OnStatus((item, msg, s) => Console.WriteLine($"{DateTime.Now} => Status: {item} => {msg}"))
.OnError((item, msg, s) => Console.WriteLine($"Stream error: {DateTime.Now}:{item} => {msg}"));