Closed xiangpeng2008 closed 4 years ago
This is already discussed here: https://groups.io/g/insync/topic/multiple_symbols_onbarupdate/23325192?p=,,,20,0,0,0::recentpostdate%2Fsticky,,,20,2,0,23325192
BarDataList, it is more than simply a list of bars, it also contains the parameters of the original call to reqHistoricalData, including contract (emphasis added below)
Hi,
Is there anyway to know the contract for
reqRealTimeBars
?barUpdateEvent
won't give.Versions:
To produce:
Output:
We see there's no specific information to tell which
RealTimeBar
is forEURUSD
orAUDUSD
, unless we look at the price value, which is however not a very systematic way.Thanks a lot !
Xiangpeng