Lending Detail Chart

Retrieve historical time-series data for lending pool metrics including deposits, borrows, APRs, and utilization rates.


Endpoint

GET /api/v1/partner/pool/lending/chart

Request Parameters

Name
Type
Required
Description

coin_type

string

Yes

The unique identifier of the coin (e.g., 0x...::module::COIN).

protocol

string

Yes

Lending protocol identifier. Supported values: suilend, navi, scallop, alphalend.

interval

string

Yes

Data aggregation interval. Supported value: 1H.

timeframe

string

Yes

Time range for historical data. Supported values: 1d, 2d, 3d, 1w.

Supported Protocols

Protocol Key
Protocol Name

suilend

Suilend

navi

Navi Protocol

scallop

Scallop

alphalend

Alphalend

Supported Intervals

Interval Key
Duration

1H

1 hour

Supported Timeframes

Timeframe Key
Duration

1d

1 day

2d

2 days

3d

3 days

1w

1 week


Headers

Header
Required
Description

x-api-key

No

API key for authorization.


cURL Example


Response

Fields

Field
Type
Nullable
Description

code

number

No

HTTP-like response code (200 = success).

message

string

No

Status message.

data

object

No

Time-series chart data object.

Chart Data Object

Field
Type
Description

timestamp

array

Array of Unix millisecond timestamps.

deposit

array

Array of total deposit amounts (token units) at each timestamp.

borrow

array

Array of total borrow amounts (token units) at each timestamp.

deposit_usd

array

Array of total deposit values in USD at each timestamp.

borrow_usd

array

Array of total borrow values in USD at each timestamp.

total_deposit_apr

array

Array of total deposit APR percentages at each timestamp.

total_borrow_apr

array

Array of total borrow APR percentages at each timestamp.

utilization

array

Array of utilization rate percentages at each timestamp.

Note: All arrays have the same length, with each index corresponding to the same time point across all metrics.

Success Response Example


See also: Environment Setup | Lending Pool API

Last updated