Package io.runon.trading
Class PriceChangeImpl
java.lang.Object
io.runon.trading.PriceChangeImpl
- All Implemented Interfaces:
Price,PriceChange,PriceChangeRate
가격 변화 구현체
- Author:
- macle
-
Constructor Summary
ConstructorsConstructorDescriptionPriceChangeImpl(BigDecimal close, BigDecimal change, BigDecimal changeRate, BigDecimal previous) 생성자 -
Method Summary
Modifier and TypeMethodDescriptionprevious 기준 (일별이면 전 거래일, 분봉이면 전봉))previous 기준 (일별이면 전 거래일, 분봉이면 전봉))getClose()종가 얻기(일별이면 전 거래일, 분봉이면 전봉)
-
Constructor Details
-
PriceChangeImpl
public PriceChangeImpl(BigDecimal close, BigDecimal change, BigDecimal changeRate, BigDecimal previous) 생성자- Parameters:
close- 종가change- 변화가격changeRate- 변화율previous- 전일가
-
-
Method Details
-
getClose
Description copied from interface:Price종가 얻기 -
getChange
Description copied from interface:PriceChangeprevious 기준 (일별이면 전 거래일, 분봉이면 전봉))- Specified by:
getChangein interfacePriceChange- Returns:
- 변동가격
-
getChangeRate
Description copied from interface:PriceChangeRateprevious 기준 (일별이면 전 거래일, 분봉이면 전봉))- Specified by:
getChangeRatein interfacePriceChangeRate- Returns:
- 변동율
-
getPrevious
Description copied from interface:PriceChange(일별이면 전 거래일, 분봉이면 전봉)- Specified by:
getPreviousin interfacePriceChange- Returns:
- 전 거래 가격
-