Trading Engine for live trading and backtest simulation