savings

User recent savings for the latest completed home-timezone day

userRecentSavings is a string integer with 18 decimal places (divide by 10^18 for the human-readable amount). Each userVaultSharesIntervals row includes startPps and endPps: interpolated share prices at that row’s start and end (same 18-decimal scaling as savingsSnapshotPoints.sharePrice; null when interpolation is unavailable).

get/savings/users/{userId}/rewards

Path parameters

userIdnumber required

Response

userRecentSavingsstring nullable required

Fixed-point amount as a stringified integer with 18 decimal places (same scaling as sharePrice); divide by 10^18 for the decimal value.

Example response

{
  "userRecentSavings": "123456789000000000",
  "userVaultSharesIntervals": [
    {
      "sharesHeld": "1000000000000000000",
      "startPps": "1008165582605877658",
      "endPps": "1008463703443079911"
    }
  ],
  "savingsSnapshotPoints": [
    {
      "sharePrice": "1000000000000000000"
    }
  ]
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.