Hi!

When making a History() call for a specific symbol, if the amount of historical data available is less than the requested data, some log messages will be automatically printed:

2005-01-01 00:00:00 [ABBC, 12/16/2004]
2005-01-01 00:00:00 Warning: when performing history requests, the start date will be adjusted if it is before the first known date for the symbol.

When running an algorithm on a large number of symbols, these messages add up fast. Since log file sizes are highly restricted, is there a way to:

  1. Avoid getting these log messages OR
  2. Is there a way to get the number of History bars available without having to make the History() call which generates the log messages. By knowing there isn't sufficient bars available for a symbol, we wouldn't make the History() call.

 

Thanks!