Add offerID

This commit is contained in:
Manfred Karrer 2016-07-25 10:24:45 +02:00
parent a6660d04c9
commit 38cc71c6aa

View File

@ -33,6 +33,7 @@ public final class TradeStatistics implements StoragePayload, CapabilityRequirin
public final double marketPriceMargin;
public final long offerAmount;
public final long offerMinAmount;
public final String offerId;
public final String depositTxId;
@JsonExclude
public final PubKeyRing pubKeyRing;
@ -46,6 +47,8 @@ public final class TradeStatistics implements StoragePayload, CapabilityRequirin
this.marketPriceMargin = offer.getMarketPriceMargin();
this.offerAmount = offer.getAmount().value;
this.offerMinAmount = offer.getMinAmount().value;
this.offerId = offer.getId();
this.tradePrice = tradePrice.longValue();
this.tradeAmount = tradeAmount.value;
this.tradeDate = tradeDate.getTime();