Record Class OnChainSnapshot
java.lang.Object
java.lang.Record
com.wualabs.qtsurfer.engine.indicators.onchain.model.OnChainSnapshot
- Record Components:
timestamp- snapshot timestampspentOutputs- list of spent outputs in this period (for SOPR)marketCap- total market capitalization in USDrealizedCap- realized capitalization in USD (sum of all UTXOs valued at last move)transactionVolume- total on-chain transaction volume in USD
public record OnChainSnapshot(Instant timestamp, List<SpentOutput> spentOutputs, double marketCap, double realizedCap, double transactionVolume)
extends Record
Aggregated on-chain data for a specific point in time (block or daily).
-
Constructor Summary
ConstructorsConstructorDescriptionOnChainSnapshot(Instant timestamp, List<SpentOutput> spentOutputs, double marketCap, double realizedCap, double transactionVolume) Creates an instance of aOnChainSnapshotrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleReturns the value of themarketCaprecord component.doubleReturns the value of therealizedCaprecord component.Returns the value of thespentOutputsrecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.doubleReturns the value of thetransactionVolumerecord component.
-
Constructor Details
-
OnChainSnapshot
public OnChainSnapshot(Instant timestamp, List<SpentOutput> spentOutputs, double marketCap, double realizedCap, double transactionVolume) Creates an instance of aOnChainSnapshotrecord class.- Parameters:
timestamp- the value for thetimestamprecord componentspentOutputs- the value for thespentOutputsrecord componentmarketCap- the value for themarketCaprecord componentrealizedCap- the value for therealizedCaprecord componenttransactionVolume- the value for thetransactionVolumerecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
timestamp
-
spentOutputs
Returns the value of thespentOutputsrecord component.- Returns:
- the value of the
spentOutputsrecord component
-
marketCap
-
realizedCap
public double realizedCap()Returns the value of therealizedCaprecord component.- Returns:
- the value of the
realizedCaprecord component
-
transactionVolume
public double transactionVolume()Returns the value of thetransactionVolumerecord component.- Returns:
- the value of the
transactionVolumerecord component
-