changed argument name for trademode to order_type to make more sense