本文整理匯總了Java中io.pivotal.portfolio.domain.OrderType類的典型用法代碼示例。如果您正苦於以下問題:Java OrderType類的具體用法?Java OrderType怎麽用?Java OrderType使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
OrderType類屬於io.pivotal.portfolio.domain包,在下文中一共展示了OrderType類的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: order
import io.pivotal.portfolio.domain.OrderType; //導入依賴的package包/類
public static Order order() {
Order order1 = new Order();
order1.setAccountId(ACCOUNT_ID);
order1.setCompletionDate(COMPLETION_DATE);
order1.setOrderFee(FEE);
order1.setOrderType(OrderType.BUY);
order1.setPrice(PRICE);
order1.setQuantity(QUANTITY);
order1.setSymbol(SYMBOL);
return order1;
}
示例2: order2
import io.pivotal.portfolio.domain.OrderType; //導入依賴的package包/類
public static Order order2() {
Order order1 = new Order();
order1.setOrderId(1);
order1.setAccountId(ACCOUNT_ID);
order1.setCompletionDate(COMPLETION_DATE);
order1.setOrderFee(FEE);
order1.setOrderType(OrderType.BUY);
order1.setPrice(PRICE);
order1.setQuantity(QUANTITY);
order1.setSymbol(SYMBOL);
return order1;
}
示例3: sellOrder
import io.pivotal.portfolio.domain.OrderType; //導入依賴的package包/類
public static Order sellOrder() {
Order order1 = new Order();
order1.setOrderId(1);
order1.setAccountId(ACCOUNT_ID);
order1.setCompletionDate(COMPLETION_DATE);
order1.setOrderFee(FEE);
order1.setOrderType(OrderType.SELL);
order1.setPrice(PRICE);
order1.setQuantity(QUANTITY);
order1.setSymbol(SYMBOL);
return order1;
}
示例4: order
import io.pivotal.portfolio.domain.OrderType; //導入依賴的package包/類
public static Order order() {
Order order1 = new Order();
order1.setUserId(USER_ID);
order1.setAccountId(ACCOUNT_ID);
order1.setCompletionDate(COMPLETION_DATE);
order1.setOrderFee(FEE);
order1.setOrderType(OrderType.BUY);
order1.setPrice(PRICE);
order1.setQuantity(QUANTITY);
order1.setSymbol(SYMBOL);
return order1;
}
示例5: order2
import io.pivotal.portfolio.domain.OrderType; //導入依賴的package包/類
public static Order order2() {
Order order1 = new Order();
order1.setOrderId(1);
order1.setAccountId(ACCOUNT_ID);
order1.setUserId(USER_ID);
order1.setCompletionDate(COMPLETION_DATE);
order1.setOrderFee(FEE);
order1.setOrderType(OrderType.BUY);
order1.setPrice(PRICE);
order1.setQuantity(QUANTITY);
order1.setSymbol(SYMBOL);
return order1;
}
示例6: sellOrder
import io.pivotal.portfolio.domain.OrderType; //導入依賴的package包/類
public static Order sellOrder() {
Order order1 = new Order();
order1.setOrderId(1);
order1.setUserId(USER_ID);
order1.setAccountId(ACCOUNT_ID);
order1.setCompletionDate(COMPLETION_DATE);
order1.setOrderFee(FEE);
order1.setOrderType(OrderType.SELL);
order1.setPrice(PRICE);
order1.setQuantity(QUANTITY);
order1.setSymbol(SYMBOL);
return order1;
}