Examples of MarketPrice


Examples of org.archfirst.bfoms.domain.marketdata.MarketPrice

   
    public List<Lot> buy(String symbol, BigDecimal quantity, BigDecimal pricePaidPerShare) {
       
        // Make sure placeOrder() can get a market price for the symbol
        marketDataService.updateMarketPrice(
                new MarketPrice(symbol, new Money("10"), new DateTime()));

        // Place the order
        OrderParams orderParams = new OrderParams(
                OrderSide.Buy,
                symbol,
View Full Code Here

Examples of org.archfirst.bfoms.domain.marketdata.MarketPrice

                externalAccount1Id, brokerageAccount1Id);
    }
   
    public void setMarketPrice(String symbol, BigDecimal price) {
        marketDataService.updateMarketPrice(
                new MarketPrice(symbol, new Money(price), new DateTime()));
    }
View Full Code Here

Examples of org.archfirst.bfoms.domain.marketdata.MarketPrice

    }

    private static final MarketPrice toDomainMarketPrice(
            org.archfirst.bfoms.interfaceout.exchange.marketdataadapter.client.MarketPrice wsMarketPrice) {

        return new MarketPrice(
                wsMarketPrice.getSymbol(),
                new Money(
                        wsMarketPrice.getPrice().getAmount(),
                        Currency.getInstance(wsMarketPrice.getPrice().getCurrency())),
                new DateTime(wsMarketPrice.getEffective().toGregorianCalendar()));
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.