Package org.archfirst.bfoms.domain.account.brokerage.order

Examples of org.archfirst.bfoms.domain.account.brokerage.order.OrderParams


    }
   
    public String sell(String symbol, BigDecimal quantity) {

        // Get order estimate
        OrderParams orderParams = new OrderParams(
                OrderSide.Sell,
                symbol,
                quantity,
                OrderType.Market,
                null,
View Full Code Here


    }
   
    public String buy(String symbol, BigDecimal quantity) {

        // Get order estimate
        OrderParams orderParams = new OrderParams(
                OrderSide.Buy,
                symbol,
                quantity,
                OrderType.Market,
                null,
View Full Code Here

        marketDataService.updateMarketPrice(
                new MarketPrice(symbol, new Money("1.00"), new DateTime()));

        // Place orders
        for (int orderNumber=0; orderNumber < numOrders; orderNumber++) {
            OrderParams orderParams = new OrderParams(
                    OrderSide.Buy,
                    symbol,
                    new BigDecimal(10),
                    OrderType.Market,
                    null,
View Full Code Here

        // 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.Sell,
                symbol,
                quantity,
                OrderType.Market,
                null,
View Full Code Here

        // 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,
                quantity,
                OrderType.Market,
                null,
View Full Code Here

TOP

Related Classes of org.archfirst.bfoms.domain.account.brokerage.order.OrderParams

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.