Examples of OrderParams


Examples of models.support.OrderParams

        // When
        SearchParams searchParam = new SearchParams()
            .add("project.owner", "yobi", Matching.EQUALS)
            .add("project.name", "projectYobi", Matching.EQUALS)
            .add("body", "", Matching.CONTAINS);
        OrderParams orderParams = new OrderParams().add("id", Direction.DESC);
        Page<Posting> page = FinderTemplate.getPage(orderParams, searchParam, Posting.finder, AbstractPostingApp.ITEMS_PER_PAGE, 0);
        // Then
        assertThat(page.getList()).hasSize(1);
    }
View Full Code Here

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

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

    }
   
    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

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

        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

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

        // 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

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

        // 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
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.