Package org.knowm.xchange.dto.marketdata
Class Trade
java.lang.Object
org.knowm.xchange.dto.marketdata.Trade
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
UserTrade
Data object representing a Trade
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringThe trade idprotected InstrumentThe instrumentprotected Stringprotected BigDecimalAmount that was tradedprotected BigDecimalThe priceprotected Stringprotected DateThe timestamp of the trade according to the exchange's server, null if not providedprotected Order.OrderTypeDid this trade result from the execution of a bid or a ask? -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.CurrencyPair is a subtype of Instrument - this method will throw an exception if the order was for a derivative
-
Field Details
-
type
Did this trade result from the execution of a bid or a ask? -
originalAmount
Amount that was traded -
instrument
The instrument -
price
The price -
timestamp
The timestamp of the trade according to the exchange's server, null if not provided -
id
The trade id -
makerOrderId
-
takerOrderId
-
-
Constructor Details
-
Trade
public Trade()
-
-
Method Details
-
getCurrencyPair
Deprecated.CurrencyPair is a subtype of Instrument - this method will throw an exception if the order was for a derivativeuse
insteadinvalid reference
#getInstrument()
-