Logger log = Logger.getLogger(IbEsper.class);
EPServiceProvider epService = EPServiceProviderManager.getDefaultProvider();
String expressionString = "select avg(price) from com.squirrelhill.ibesper.event.TickPriceEvent.win:time(30 sec)";
EPStatement statement = epService.getEPAdministrator().createEPL(expressionString);
statement.addListener(new TickPriceEventListener());
IbDataProducer dataProvider = new IbDataProducer();
final SQLiteDataConsumer dataConsumer = new SQLiteDataConsumer("jdbc:sqlite:mktdata.db");
try {