- Enclosing class:
- CoinExchange
public static final class CoinExchange.Trade
extends java.lang.Object
Define a coin exchange trade
A coin exchange consists of two trades. One trade is entered in the trade table
for our coin and another trade is entered in the trade table for the
requested coin. For each trade, the buyer is the order owner for the owning child chain and
the seller is the order owner for the requested coin child chain.
'exchangeId' is the child chain identifier for the exchanged coin
'exchangeQuantity' is the exchanged coin amount
'exchangePrice' is the price for the exchanged coins
'exchangeQuantity * exchangePrice' is the number of coins spent for the exchange