Package org.knowm.xchange.dto.marketdata
Class Trade.Builder
java.lang.Object
org.knowm.xchange.dto.marketdata.Trade.Builder
- Direct Known Subclasses:
UserTrade.Builder
- Enclosing class:
Trade
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
protected Instrument
protected String
protected BigDecimal
protected BigDecimal
protected String
protected Date
protected Order.OrderType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
currencyPair
(CurrencyPair currencyPair) Deprecated.CurrencyPair is a subtype of Instrument - this method will throw an exception if the order was for a derivativestatic Trade.Builder
instrument
(Instrument instrument) makerOrderId
(String makerOrderId) originalAmount
(BigDecimal originalAmount) price
(BigDecimal price) takerOrderId
(String takerOrderId) type
(Order.OrderType type)
-
Field Details
-
type
-
originalAmount
-
instrument
-
price
-
timestamp
-
id
-
makerOrderId
-
takerOrderId
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
from
-
type
-
originalAmount
-
instrument
-
currencyPair
Deprecated.CurrencyPair is a subtype of Instrument - this method will throw an exception if the order was for a derivativeuse
instrument(Instrument)
instead -
price
-
timestamp
-
id
-
makerOrderId
-
takerOrderId
-
build
-