reqHistParam(security=None, barSize=None, goBack=None, endTime=dt.datetime.now())
Use reqHistParam to clearly define the parameters when you request historical data from IB.
security: use symbol( ) or symbols( ) or superSymbol( ) to define security
barSize: 1 sec, 5 secs, 15 secs, 30 secs, 1 min, 2 mins, 3 mins, 5 mins, 15 mins, 30 mins, 1 hour, 1 day
goBack: Valid values include any integer followed by a space and then S (seconds), D (days) or W (week), for example, ’10 D’ stands for 10 days
endTime: Defines a query end date and time at any point. Use python datetime object.