コード例 #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);
   }
 }