Added back validation for optional arguments provided to the getTrades
and getOrderBook methods.