Skip to content

Asset History

GET
/v1/assets/{market}/{pool}/history

Bucketed history for a pool. Stocks (supplied, borrowed, TVL) are averaged per bucket; rates (APYs, utilization) use the median. Window defaults to the last 24h.

Parameters

Path Parameters

market*

Market contract strkey (C…)

Type
string
Required
pool*

Pool contract strkey (C…)

Type
string
Required

Query Parameters

start_date

Inclusive left edge of the window (RFC 3339 / ISO 8601). Defaults
to end_date - 24h when omitted.

Type
[ "string", "null" ]
Format
"date-time"
end_date

Exclusive right edge of the window (RFC 3339 / ISO 8601). Defaults
to now() (UTC) when omitted, snapped to the bucket boundary so
the ETag stays stable across requests within the same bucket.

Type
[ "string", "null" ]
Format
"date-time"
bucket

Optional bucket width. Allowed: 5m, 15m, 1h, 6h, 1d,
1w. If omitted, the server picks a width sized to the span.

Responses

History buckets

application/json
JSON
{
  
"data": [
  
  
{
  
  
  
"borrow_apy_bps": 0,
  
  
  
"end_time": "string",
  
  
  
"oracle_price_usd": "string",
  
  
  
"start_time": "string",
  
  
  
"supply_apy_bps": 0,
  
  
  
"total_borrowed": "string",
  
  
  
"total_supplied": "string",
  
  
  
"tvl_usd_cents": "string",
  
  
  
"utilization_bps": 0
  
  
}
  
],
  
"next_cursor": "string"
}

Playground

Variables
Key
Value

Samples

Powered by VitePress OpenAPI