示例#1
0
 @Override
 public void tick(Day day, java.util.Collection<OrderBook> orderbooks) {
   super.tick(day, orderbooks);
   for (int i = 0; i < injectors.length; i++) {
     injectors[i].sendTick(System.currentTimeMillis(), day, orderbooks);
   }
 }
示例#2
0
 @Override
 public void day(int nbDays, java.util.Collection<OrderBook> orderbooks) {
   super.day(nbDays, orderbooks);
   for (int i = 0; i < injectors.length; i++) {
     injectors[i].sendDay(System.currentTimeMillis(), nbDays, orderbooks);
   }
 }
示例#3
0
 @Override
 public void price(PriceRecord pr, long bestAskPrice, long bestBidPrice) {
   super.price(pr, bestAskPrice, bestBidPrice);
   for (int i = 0; i < injectors.length; i++) {
     injectors[i].sendPriceRecord(System.currentTimeMillis(), pr, bestAskPrice, bestBidPrice);
   }
 }
示例#4
0
 @Override
 public void order(Order o) {
   super.order(o);
   for (int i = 0; i < injectors.length; i++) {
     injectors[i].sendOrder(System.currentTimeMillis(), o);
   }
 }
示例#5
0
 @Override
 public void agent(Agent a, Order o, PriceRecord pr) {
   super.agent(a, o, pr);
   for (int i = 0; i < injectors.length; i++) {
     injectors[i].sendAgent(System.currentTimeMillis(), a, o, pr);
   }
 }
示例#6
0
 public void agentReferential(@NotNull List<AgentReferentialLine> referencial) {
   assert !referencial.isEmpty();
   for (int i = 0; i < injectors.length; i++) {
     injectors[i].sendAgentReferential(System.currentTimeMillis(), referencial);
   }
 }