package org.knowm.xchange.hitbtc.v2.dto;

import java.math.BigDecimal;

public class HitbtcCandle {

  private String timestamp;

  private BigDecimal open;

  private BigDecimal close;

  private BigDecimal min;

  private BigDecimal max;

  private BigDecimal volume;

  private BigDecimal volumeQuote;

  public HitbtcCandle(
      String timestamp,
      BigDecimal open,
      BigDecimal close,
      BigDecimal min,
      BigDecimal max,
      BigDecimal volume,
      BigDecimal volumeQuote) {
    this.timestamp = timestamp;
    this.open = open;
    this.close = close;
    this.min = min;
    this.max = max;
    this.volume = volume;
    this.volumeQuote = volumeQuote;
  }

  @Override
  public String toString() {
    return "HitbtcCandle [timestamp="
        + timestamp
        + ", open="
        + open
        + ", max="
        + max
        + ", min="
        + min
        + ", close="
        + close
        + ", volumeQuote="
        + volumeQuote
        + ", volume="
        + volume
        + "]";
  }

  public String getTimestamp() {
    return timestamp;
  }

  public BigDecimal getOpen() {
    return open;
  }

  public BigDecimal getClose() {
    return close;
  }

  public BigDecimal getMin() {
    return min;
  }

  public BigDecimal getMax() {
    return max;
  }

  public BigDecimal getVolume() {
    return volume;
  }

  public BigDecimal getVolumeQuote() {
    return volumeQuote;
  }
}

@@ -35,16 +35,123 @@
 2.dto;%0A%0A
+import com.fasterxml.jackson.annotation.JsonCreator;%0Aimport com.fasterxml.jackson.annotation.JsonProperty;%0A
 import j
@@ -171,16 +171,16 @@
 ecimal;%0A
-
 %0Apublic 
@@ -406,16 +406,31 @@
 Quote;%0A%0A
+  @JsonCreator%0A
   public
@@ -449,16 +449,43 @@
 e(%0A     
+ @JsonProperty(%22timestamp%22)
  String 
@@ -496,24 +496,46 @@
 stamp,%0A     
+ @JsonProperty(%22open%22)
  BigDecimal 
@@ -537,32 +537,55 @@
 imal open,%0A     
+ @JsonProperty(%22close%22)
  BigDecimal clos
@@ -584,32 +584,53 @@
 mal close,%0A     
+ @JsonProperty(%22min%22)
  BigDecimal min,
@@ -631,24 +631,45 @@
 l min,%0A     
+ @JsonProperty(%22max%22)
  BigDecimal 
@@ -683,32 +683,85 @@
     
-BigDecimal volume,%0A     
+@JsonProperty(%22volume%22) BigDecimal volume,%0A      @JsonProperty(%22volumeQuote%22)
  Big

add explicit Json mappings for HitbtcCandle public constructor