I viewed this question about stream id per ric vs batches to get an idea of how to approach this. I'm running into issues when I send multiple requests for stream (as opposed to Non-Streaming) data. When I send 4 separate requests to receive streaming data for some RICS. I only get streams for 2. I don't receive any responses (Status, Update, Refresh) for the other requests
Here's a (simplified) version of what my code looks like:
const rics = ['AAPL.OQ', 'IBM.N', 'DIS.N', 'TSLA.OQ']
for (const ric of rics) {
//The request is made with ids: AAPL=>2, IBN=>3, DIS=>4, TSLA=>5
//Helper method creates the message, and sends the message from the websocket
sendStreamRequest(ric);
}
Example of what a message looks like:
{
ID: 2,
Key: {
Name: 'AAPL.OQ'
},
Streaming: true,
Type: 'Request'
}
My method to use an id for a stream (right now) is really simple. I start with id=2, and increment the id by 1 for each different RIC.
With the current code I have, I'll receive a response for the first 2 APPL, IBM, but no other responses for the other 2 messages I sent - not a Status, Refresh, or Update message.
Any ideas why this may be happening?