@Test public void test_price(){ assertEquals(0.0 , processor.getPrice(order, null, null), 0.0); assertEquals(trade.price, processor.getPrice(order, trade, null), 0.0); }
public double getPrice(Order order, Trade trade, SimulatorConfig config) { if (trade != null && trade.price > 0) { return trade.price; } return 0.0; }
TradeProcessor extends MarketDataProcessor<Trade> { public double getPrice(Order order, Trade trade, SimulatorConfig config) { if (trade != null && trade.price > 0) { return trade.price; } return 0.0; } }
TradeProcessor extends MarketDataProcessor<Trade> { public double getPrice(Order order, Trade trade, SimulatorConfig config) { if (trade != null && trade.price > 0) { return trade.price; } return 0.0; }  }
TradeProcessor extends MarketDataProcessor<Trade> { public double getPrice(Order order, Trade trade, SimulatorConfig config) { if (trade != null && trade.price > 0) { return trade.price; } return 0.0; }  double getPrice(Order order, Trade trade, SimulatorConfig config); double getQty(Order order, Trade trade, SimulatorConfig config); }
TradeProcessor extends MarketDataProcessor<Trade> { public double getPrice(Order order, Trade trade, SimulatorConfig config) { if (trade != null && trade.price > 0) { return trade.price; } return 0.0; }  double getPrice(Order order, Trade trade, SimulatorConfig config); double getQty(Order order, Trade trade, SimulatorConfig config);  }