public class UserTrade extends Trade
Modifier and Type | Class and Description |
---|---|
static class |
UserTrade.Builder |
currencyPair, id, price, timestamp, tradableAmount, type
Constructor and Description |
---|
UserTrade(Order.OrderType type,
BigDecimal tradableAmount,
CurrencyPair currencyPair,
BigDecimal price,
Date timestamp,
String id,
String orderId,
BigDecimal feeAmount,
String feeCurrency)
This constructor is called to construct user's trade objects (in
PollingTradeService.getTradeHistory(Object...) implementations). |
Modifier and Type | Method and Description |
---|---|
BigDecimal |
getFeeAmount() |
String |
getFeeCurrency() |
String |
getOrderId() |
String |
toString() |
equals, getCurrencyPair, getId, getPrice, getTimestamp, getTradableAmount, getType, hashCode
public UserTrade(Order.OrderType type, BigDecimal tradableAmount, CurrencyPair currencyPair, BigDecimal price, Date timestamp, String id, String orderId, BigDecimal feeAmount, String feeCurrency)
PollingTradeService.getTradeHistory(Object...)
implementations).type
- The trade type (BID side or ASK side)tradableAmount
- The depth of this tradetradableIdentifier
- The exchange identifier (e.g. "BTC/USD")transactionCurrency
- The transaction currency (e.g. USD in 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 chargedCopyright © 2012–2018 Xeiam, LLC. All rights reserved.