made getTradeHistory more generic for greater flexibility.
fixed orderbook timestamp issues.