From 38cc71c6aa9c14a47980d443aa0a3dcbe666bf2e Mon Sep 17 00:00:00 2001 From: Manfred Karrer Date: Mon, 25 Jul 2016 10:24:45 +0200 Subject: [PATCH] Add offerID --- core/src/main/java/io/bitsquare/trade/TradeStatistics.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/src/main/java/io/bitsquare/trade/TradeStatistics.java b/core/src/main/java/io/bitsquare/trade/TradeStatistics.java index 3fc65fb087..5619d99ee3 100644 --- a/core/src/main/java/io/bitsquare/trade/TradeStatistics.java +++ b/core/src/main/java/io/bitsquare/trade/TradeStatistics.java @@ -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();