Description
When I subscribe to the "bars" updates for a set of stocks, I want to be able to listen to updates with stream.on("bar", (bar) => {}); but the issue is that the Bar type does not contain any information about which stock this bar is for. So when I listen for bar updates I have no idea which stock these updates are for.
In the alpaca documentation however, it seems to say that the JSON returned for Bar objects contains a property S which is the symbol name.
Description When I subscribe to the "bars" updates for a set of stocks, I want to be able to listen to updates with
stream.on("bar", (bar) => {});
but the issue is that theBar
type does not contain any information about which stock this bar is for. So when I listen forbar
updates I have no idea which stock these updates are for.In the alpaca documentation however, it seems to say that the JSON returned for
Bar
objects contains a propertyS
which is the symbol name.