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