Package nxt.ce
Class CoinExchange.Order
java.lang.Object
nxt.ce.CoinExchange.Order
- Enclosing class:
- CoinExchange
Define a coin exchange order
'id' and 'fullHash' identify the coin exchange order
'chainId' is the chain identifier for the coin being exchanged
'exchangeId' is the chain identifier for the requested coin
'quantity' is the number of coins being exchanged (updated after each trade)
'bidPrice' is the bid price for the requested coin and is the exchange order price
'askPrice' is the ask price for coin being exchanged and is 1/bidPrice
-
Method Summary
Modifier and TypeMethodDescriptionfinal longfinal longfinal BigDecimalfinal longfinal BigDecimalfinal longfinal intfinal intfinal byte[]final intfinal longgetId()final longfinal intfinal inttoString()
-
Method Details
-
getId
public final long getId() -
getFullHash
public final byte[] getFullHash() -
getAccountId
public final long getAccountId() -
getChainId
public final int getChainId() -
getExchangeId
public final int getExchangeId() -
getBidPriceNQT
public final long getBidPriceNQT() -
getBidPrice
-
getAskPriceNQT
public final long getAskPriceNQT() -
getAskPrice
-
getQuantityQNT
public final long getQuantityQNT() -
getAmountNQT
public final long getAmountNQT() -
getHeight
public final int getHeight() -
getTransactionIndex
public final int getTransactionIndex() -
getTransactionHeight
public final int getTransactionHeight() -
toString
-