Class PriceChangeImpl

java.lang.Object
io.runon.trading.PriceChangeImpl
All Implemented Interfaces:
Price, PriceChange, PriceChangeRate

public class PriceChangeImpl extends Object implements PriceChange
가격 변화 구현체
Author:
macle
  • Constructor Details

    • PriceChangeImpl

      public PriceChangeImpl(BigDecimal close, BigDecimal change, BigDecimal changeRate, BigDecimal previous)
      생성자
      Parameters:
      close - 종가
      change - 변화가격
      changeRate - 변화율
      previous - 전일가
  • Method Details

    • getClose

      public BigDecimal getClose()
      Description copied from interface: Price
      종가 얻기
      Specified by:
      getClose in interface Price
      Returns:
      double 종가
    • getChange

      public BigDecimal getChange()
      Description copied from interface: PriceChange
      previous 기준 (일별이면 전 거래일, 분봉이면 전봉))
      Specified by:
      getChange in interface PriceChange
      Returns:
      변동가격
    • getChangeRate

      public BigDecimal getChangeRate()
      Description copied from interface: PriceChangeRate
      previous 기준 (일별이면 전 거래일, 분봉이면 전봉))
      Specified by:
      getChangeRate in interface PriceChangeRate
      Returns:
      변동율
    • getPrevious

      public BigDecimal getPrevious()
      Description copied from interface: PriceChange
      (일별이면 전 거래일, 분봉이면 전봉)
      Specified by:
      getPrevious in interface PriceChange
      Returns:
      전 거래 가격