Class MarketDataDTO
java.lang.Object
com.raphaelsalles.backend.api.dto.MarketDataDTO
DTO para dados de Mercado Financeiro.
Propósito: Agrega informações de cotação em tempo real e indicadores de valuation calculados. Também pode carregar uma mensagem de erro se o processamento de um ativo falhar.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BigDecimalprivate BigDecimalprivate Stringprivate Stringprivate BigDecimalprivate BigDecimalprivate BigDecimalprivate BigDecimalprivate String -
Constructor Summary
ConstructorsConstructorDescriptionMarketDataDTO(String ticker, String errorMessage) Construtor de conveniência para criar um DTO em caso de erro.MarketDataDTO(String ticker, BigDecimal price, BigDecimal change, BigDecimal changePercent, BigDecimal pl, BigDecimal pvp, BigDecimal marketCap, String lastUpdate, String error) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected booleanbooleangetError()getPl()getPrice()getPvp()inthashCode()voidsetChange(BigDecimal change) voidsetChangePercent(BigDecimal changePercent) voidvoidsetLastUpdate(String lastUpdate) voidsetMarketCap(BigDecimal marketCap) voidsetPl(BigDecimal pl) voidsetPrice(BigDecimal price) voidsetPvp(BigDecimal pvp) voidtoString()
-
Field Details
-
ticker
-
price
-
change
-
changePercent
-
pl
-
pvp
-
marketCap
-
lastUpdate
-
error
-
-
Constructor Details
-
MarketDataDTO
-
MarketDataDTO
public MarketDataDTO() -
MarketDataDTO
public MarketDataDTO(String ticker, BigDecimal price, BigDecimal change, BigDecimal changePercent, BigDecimal pl, BigDecimal pvp, BigDecimal marketCap, String lastUpdate, String error)
-
-
Method Details
-
builder
-
getTicker
-
getPrice
-
getChange
-
getChangePercent
-
getPl
-
getPvp
-
getMarketCap
-
getLastUpdate
-
getError
-
setTicker
-
setPrice
-
setChange
-
setChangePercent
-
setPl
-
setPvp
-
setMarketCap
-
setLastUpdate
-
setError
-
equals
-
canEqual
-
hashCode
-
toString
-