public static class Trade.Builder extends Object
Modifier and Type | Field and Description |
---|---|
protected CurrencyPair |
currencyPair |
protected String |
id |
protected BigDecimal |
price |
protected Date |
timestamp |
protected BigDecimal |
tradableAmount |
protected Order.OrderType |
type |
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Trade |
build() |
Trade.Builder |
currencyPair(CurrencyPair currencyPair) |
static Trade.Builder |
from(Trade trade) |
Trade.Builder |
id(String id) |
Trade.Builder |
price(BigDecimal price) |
Trade.Builder |
timestamp(Date timestamp) |
Trade.Builder |
tradableAmount(BigDecimal tradableAmount) |
Trade.Builder |
type(Order.OrderType type) |
protected Order.OrderType type
protected BigDecimal tradableAmount
protected CurrencyPair currencyPair
protected BigDecimal price
protected Date timestamp
protected String id
public static Trade.Builder from(Trade trade)
public Trade.Builder type(Order.OrderType type)
public Trade.Builder tradableAmount(BigDecimal tradableAmount)
public Trade.Builder currencyPair(CurrencyPair currencyPair)
public Trade.Builder price(BigDecimal price)
public Trade.Builder timestamp(Date timestamp)
public Trade.Builder id(String id)
public Trade build()
Copyright © 2012–2017 Xeiam, LLC. All rights reserved.