Package nxt
Class Trade
- java.lang.Object
-
- nxt.Trade
-
public final class Trade extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTrade.Event
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanaddListener(Listener<Trade> listener, Trade.Event eventType)static DbIterator<Trade>getAccountAssetTrades(long accountId, long assetId, int from, int to)static DbIterator<Trade>getAccountTrades(long accountId, int from, int to)static DbIterator<Trade>getAllTrades()static DbIterator<Trade>getAllTrades(int from, int to)intgetAskOrderHeight()longgetAskOrderId()static DbIterator<Trade>getAskOrderTrades(long askOrderId, int from, int to)longgetAssetId()static DbIterator<Trade>getAssetTrades(long assetId, int from, int to)intgetBidOrderHeight()longgetBidOrderId()static DbIterator<Trade>getBidOrderTrades(long bidOrderId, int from, int to)longgetBlockId()longgetBuyerId()static intgetCount()intgetHeight()static java.util.List<Trade>getLastTrades(long[] assetIds)longgetPriceNQT()longgetQuantityQNT()longgetSellerId()intgetTimestamp()static TradegetTrade(long askOrderId, long bidOrderId)static intgetTradeCount(long assetId)booleanisBuy()static booleanremoveListener(Listener<Trade> listener, Trade.Event eventType)java.lang.StringtoString()
-
-
-
Method Detail
-
getAllTrades
public static DbIterator<Trade> getAllTrades(int from, int to)
-
getAllTrades
public static DbIterator<Trade> getAllTrades()
-
getCount
public static int getCount()
-
addListener
public static boolean addListener(Listener<Trade> listener, Trade.Event eventType)
-
removeListener
public static boolean removeListener(Listener<Trade> listener, Trade.Event eventType)
-
getTrade
public static Trade getTrade(long askOrderId, long bidOrderId)
-
getAssetTrades
public static DbIterator<Trade> getAssetTrades(long assetId, int from, int to)
-
getLastTrades
public static java.util.List<Trade> getLastTrades(long[] assetIds)
-
getAccountTrades
public static DbIterator<Trade> getAccountTrades(long accountId, int from, int to)
-
getAccountAssetTrades
public static DbIterator<Trade> getAccountAssetTrades(long accountId, long assetId, int from, int to)
-
getAskOrderTrades
public static DbIterator<Trade> getAskOrderTrades(long askOrderId, int from, int to)
-
getBidOrderTrades
public static DbIterator<Trade> getBidOrderTrades(long bidOrderId, int from, int to)
-
getTradeCount
public static int getTradeCount(long assetId)
-
getBlockId
public long getBlockId()
-
getAskOrderId
public long getAskOrderId()
-
getBidOrderId
public long getBidOrderId()
-
getAskOrderHeight
public int getAskOrderHeight()
-
getBidOrderHeight
public int getBidOrderHeight()
-
getSellerId
public long getSellerId()
-
getBuyerId
public long getBuyerId()
-
getQuantityQNT
public long getQuantityQNT()
-
getPriceNQT
public long getPriceNQT()
-
getAssetId
public long getAssetId()
-
getTimestamp
public int getTimestamp()
-
getHeight
public int getHeight()
-
isBuy
public boolean isBuy()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-