Examples of TickPriceEvent


Examples of com.squirrelhill.ibesper.event.TickPriceEvent

  @Override
  public void tickPrice(int requestId, int tickTypeId, double price, int canAutoExecute) {
    log.debug("Received tick price for " + requestId + " " + tickTypeId + " " + price
        + " " + canAutoExecute);
    TickPriceEvent tickPriceEvent = new TickPriceEvent();
    tickPriceEvent.setContract(requestIdContractMap.get(requestId));
    tickPriceEvent.setTickType(TickType.getField(tickTypeId));
    tickPriceEvent.setPrice(price);
    tickPriceEvent.setTimestamp(new Date());
   
    epService.getEPRuntime().sendEvent(tickPriceEvent);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.