if i reqHistoricalData more than once with different lengbar
like this:
# historicalData handler
con.register(myprintData, message.historicalData)
# set different barLength
barLength='1 H'
con.reqHistoricalData(0,
contract,
endDateTime,
'1 Y'
barLength,
'TRADES',
0, 1)
time.sleep(1)
# set different barLength
barLength='15 mins'
con.reqHistoricalData(0,
contract,
endDateTime,
'1 Y'
barLength,
'TRADES',
0, 1)
now my func myprintData will receive many data,
how can i know which is belong to 1 H or 15 mins?