updated order function in tickTrader