Package org.knowm.xchange.dto.trade
Class UserTrade
java.lang.Object
org.knowm.xchange.dto.marketdata.Trade
org.knowm.xchange.dto.trade.UserTrade
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
GateioUserTrade
,HitbtcUserTrade
,KrakenUserTrade
,RippleUserTrade
Data object representing a user trade
- See Also:
-
Nested Class Summary
-
Field Summary
Fields inherited from class org.knowm.xchange.dto.marketdata.Trade
id, instrument, makerOrderId, originalAmount, price, takerOrderId, timestamp, type
-
Constructor Summary
ConstructorDescriptionUserTrade
(Order.OrderType type, BigDecimal originalAmount, Instrument instrument, BigDecimal price, Date timestamp, String id, String orderId, BigDecimal feeAmount, Currency feeCurrency, String orderUserReference) This constructor is called to construct user's trade objects (inTradeService.getTradeHistory(TradeHistoryParams)
implementations). -
Method Summary
Modifier and TypeMethodDescriptionstatic UserTrade.Builder
builder()
boolean
int
hashCode()
toString()
Methods inherited from class org.knowm.xchange.dto.marketdata.Trade
getCurrencyPair, getId, getInstrument, getMakerOrderId, getOriginalAmount, getPrice, getTakerOrderId, getTimestamp, getType
-
Constructor Details
-
UserTrade
public UserTrade(Order.OrderType type, BigDecimal originalAmount, Instrument instrument, BigDecimal price, Date timestamp, String id, String orderId, BigDecimal feeAmount, Currency feeCurrency, String orderUserReference) This constructor is called to construct user's trade objects (inTradeService.getTradeHistory(TradeHistoryParams)
implementations).- Parameters:
type
- The trade type (BID side or ASK side)originalAmount
- The depth of this tradeinstrument
- The exchange identifier (e.g. "BTC/USD")price
- The price (either the bid or the ask)timestamp
- The timestamp of the tradeid
- The id of the tradeorderId
- The id of the order responsible for execution of this tradefeeAmount
- The fee that was charged by the exchange for this tradefeeCurrency
- The symbol of the currency in which the fee was chargedorderUserReference
- The id that the user has insert to the trade
-
-
Method Details