Package org.springframework.amqp.rabbit.stocks.domain

Examples of org.springframework.amqp.rabbit.stocks.domain.TradeRequest


  public void sendTradeRequest(String text) {
    String[] tokens = text.split("\\s");
    String quantityString = tokens[0];
    String ticker = tokens[1];
    int quantity = Integer.parseInt(quantityString);
    TradeRequest tr = new TradeRequest();
    tr.setAccountName("ACCT-123");
    tr.setBuyRequest(true);
    tr.setOrderType("MARKET");
    tr.setTicker(ticker);
    tr.setQuantity(quantity);
    tr.setRequestId("REQ-1");
    tr.setUserName("Joe Trader");
    tr.setUserName("Joe");
    stockServiceGateway.send(tr);   
  }
View Full Code Here

TOP

Related Classes of org.springframework.amqp.rabbit.stocks.domain.TradeRequest

Copyright © 2018 www.massapicom. 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.