TradeHistoryParams fix errors