# Get KLend reward history Fetches historical KLend reward metrics for a specific deposit and borrow reserve pair Endpoint: GET /klend/{depositReservePubkey}/{borrowReservePubkey}/rewards/history Version: 1.0.0 ## Path parameters: - `depositReservePubkey` (string, required) Deposit reserve public key Example: "VEG1EMtttdHunMbSza8uoms1R18VXmYSph2bBpHcSJd" - `borrowReservePubkey` (string, required) Borrow reserve public key Example: "VEG1EMtttdHunMbSza8uoms1R18VXmYSph2bBpHcSJd" ## Query parameters: - `start` (any) Date input (ISO 8601 string or epoch in ms) - `end` (any) Date input (ISO 8601 string or epoch in ms) - `frequency` (string) Frequency of historical data aggregation Enum: "hour", "day" ## Response 200 fields (application/json): - `timestamp` (string, required) Timestamp of the data point - `depositReserve` (string,null, required) Market public key Example: "VEG1EMtttdHunMbSza8uoms1R18VXmYSph2bBpHcSJd" - `borrowReserve` (string,null, required) Market public key Example: "VEG1EMtttdHunMbSza8uoms1R18VXmYSph2bBpHcSJd" - `rewardToken` (string, required) Market public key Example: "VEG1EMtttdHunMbSza8uoms1R18VXmYSph2bBpHcSJd" - `rewardApy` (string, required) Borrow interest APY Example: "0.2" ## Response 400 fields (application/json): - `error` (string, required) High-level error message describing the failure Example: "Invalid query request" - `details` (array) Detailed validation issues (present only for validation errors) Example: [{"code":"invalid_union","errors":[[{"code":"custom","path":[],"message":"Invalid date string"}],[{"expected":"number","code":"invalid_type","path":[],"message":"Invalid input: expected number, received string"}]],"path":["start"],"message":"Invalid input"}] ## Response 500 fields (application/json): - `error` (string, required) Error message for internal server failure Example: "An internal error occurred"