I think you can calculate TRIN from the order book data. In live trading its no problem with IB, but historical order book data is expensive.