Skip to content

Get wallet depletion forecast

GET
/v1/wallets/{wallet_id}/depletion_forecast

Get projected depletion date based on consumption rate.

wallet_id
required
Wallet Id
string format: uuid
days
Days
integer
default: 30 >= 1 <= 365

Successful Response

DepletionForecastResponse
object
wallet_id
required
Wallet Id
string format: uuid
current_balance_cents
required
Current Balance Cents
string
/^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$/
avg_daily_consumption
required
Avg Daily Consumption
string
/^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$/
projected_depletion_date
Any of:
string format: date-time
days_remaining
Any of:
integer

Unauthorized – invalid or missing API key

Wallet not found

Validation Error

HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object