Skip to content

Commit

Permalink
[upbit] use lombok @Getter, @tostring
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-jang committed Feb 12, 2024
1 parent 6bf3550 commit f65fc1b
Showing 1 changed file with 4 additions and 76 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@

import com.fasterxml.jackson.annotation.JsonProperty;
import java.math.BigDecimal;
import lombok.Getter;
import lombok.ToString;

@ToString
@Getter
public class UpbitCandleStickData {

private final String market;
Expand Down Expand Up @@ -41,80 +45,4 @@ public UpbitCandleStickData(
this.candleAccTradeVolume = candleAccTradeVolume;
this.firstDayOfPeriod = firstDayOfPeriod;
}

public String getMarket() {
return market;
}

public String getCandleDateTimeUtc() {
return candleDateTimeUtc;
}

public String getCandleDateTimeKst() {
return candleDateTimeKst;
}

public BigDecimal getOpeningPrice() {
return openingPrice;
}

public BigDecimal getHighPrice() {
return highPrice;
}

public BigDecimal getLowPrice() {
return lowPrice;
}

public BigDecimal getTracePrice() {
return tracePrice;
}

public Long getTimestamp() {
return timestamp;
}

public BigDecimal getCandleAccTradePrice() {
return candleAccTradePrice;
}

public BigDecimal getCandleAccTradeVolume() {
return candleAccTradeVolume;
}

public String getFirstDayOfPeriod() {
return firstDayOfPeriod;
}

@Override
public String toString() {
return "UpbitCandleStickData{"
+ "market='"
+ market
+ '\''
+ ", candleDateTimeUtc='"
+ candleDateTimeUtc
+ '\''
+ ", candleDateTimeKst='"
+ candleDateTimeKst
+ '\''
+ ", openingPrice="
+ openingPrice
+ ", highPrice="
+ highPrice
+ ", lowPrice="
+ lowPrice
+ ", tracePrice="
+ tracePrice
+ ", timestamp="
+ timestamp
+ ", candleAccTradePrice="
+ candleAccTradePrice
+ ", candleAccTradeVolume="
+ candleAccTradeVolume
+ ", firstDayOfPeriod='"
+ firstDayOfPeriod
+ '\''
+ '}';
}
}

0 comments on commit f65fc1b

Please sign in to comment.