Class GateioUserTrade
java.lang.Object
org.knowm.xchange.dto.marketdata.Trade
org.knowm.xchange.dto.trade.UserTrade
org.knowm.xchange.gateio.dto.trade.GateioUserTrade
- All Implemented Interfaces:
Serializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.knowm.xchange.dto.trade.UserTrade
UserTrade.Builder
-
Field Summary
Fields inherited from class org.knowm.xchange.dto.marketdata.Trade
id, instrument, makerOrderId, originalAmount, price, takerOrderId, timestamp, type
-
Constructor Summary
ConstructorsConstructorDescriptionGateioUserTrade
(Order.OrderType type, BigDecimal originalAmount, Instrument instrument, BigDecimal price, Date timestamp, String id, String orderId, BigDecimal feeAmount, Currency feeCurrency, String orderUserReference, Role role) -
Method Summary
Methods inherited from class org.knowm.xchange.dto.trade.UserTrade
builder, equals, getFeeAmount, getFeeCurrency, getOrderId, getOrderUserReference, hashCode, toString
Methods inherited from class org.knowm.xchange.dto.marketdata.Trade
getCurrencyPair, getId, getInstrument, getMakerOrderId, getOriginalAmount, getPrice, getTakerOrderId, getTimestamp, getType
-
Constructor Details
-
GateioUserTrade
public GateioUserTrade(Order.OrderType type, BigDecimal originalAmount, Instrument instrument, BigDecimal price, Date timestamp, String id, String orderId, BigDecimal feeAmount, Currency feeCurrency, String orderUserReference, Role role) - 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 traderole
- Trade role
-