interface AprComparisonResponse {
    dataPoints: AprDataPoint[];
    excludesToday: boolean;
    periodEnd: number;
    periodStart: number;
    timeRange: "1W" | "1Y" | "1M";
}

Properties

dataPoints: AprDataPoint[]

Array of APR data points over time. Each point represents a complete day of data.

excludesToday: boolean

Whether the current (today) day is excluded from the data. Always true since today has incomplete income data.

Example

true
periodEnd: number

End of the data period (Unix timestamp in seconds, midnight UTC of last complete day)

Example

1695340800
periodStart: number

Start of the data period (Unix timestamp in seconds, midnight UTC)

Example

1694736000
timeRange: "1W" | "1Y" | "1M"

Time range used for the data

Example

"1Y"