with IB, the max is 10. With other sources, it can be longer. Yahoo may get you 20, depending on the symbol type. IQFeed has much longer - I believe up to 120 or 180 days (don't remember of the top of my head).
TD Ameritrade - 120.
So basically, very much depends on the data source. Also, if...