Skip to main content

Get Active Supplies

Query active liquidity supply positions in margin pools. This endpoint returns supply positions with their current amounts, shares, and associated supplier capabilities. Use it to monitor lending positions and track interest earned.

Endpoints​

There are two endpoints for querying active supplies:

By Owner​

GET /deepbook-margin/active-supplies/{owner}

Returns active supply positions for all supplier caps owned by a specific address.

General Query​

GET /deepbook-margin/active-supplies

Returns active supply positions with optional filters.

Use Cases​

  • Lending Dashboard — Display all supply positions for a lender
  • Interest Tracking — Calculate accrued interest on supplied assets
  • Pool Analytics — Analyze total liquidity supplied to each pool
  • Portfolio Management — Track lending positions across multiple pools

Parameters​

Path Parameters (By Owner endpoint)​

ParameterTypeRequiredDescription
ownerstringYesOwner wallet address

Query Parameters​

ParameterTypeRequiredDefaultDescription
pagenumberNo0Page number (starts from 0)
perPagenumberNo10Items per page (max 50)
marginPoolIdstringNo—Filter by margin pool ID
supplierCapIdstringNo—Filter by supplier capability ID
assetTypestringNo—Filter by asset type (e.g., 0x2::sui::SUI)
api-keystringYes—Your Surflux API key

Response​

Returns a paginated response with active supply objects.

Pagination Fields​

FieldTypeDescription
itemsarrayArray of active supply objects
isLastPagebooleanWhether this is the last page
currentPagenumberCurrent page number
perPagenumberItems per page

Active Supply Fields​

FieldTypeDescription
margin_pool_idstringMargin pool where liquidity is supplied
asset_typestringType of asset supplied
supplier_cap_idstringSupplier capability ID
supply_amountnumberOriginal supplied amount
supply_sharesnumberSupply shares (for interest calculation)
remaining_amountnumberCurrent supply amount (including accrued interest)
remaining_sharesnumberCurrent supply shares
checkpointnumberCheckpoint of last update
timestampstringISO timestamp
checkpoint_timestamp_msnumberTimestamp in milliseconds
digeststringTransaction digest
supplier_capobject | nullAssociated supplier capability details

Supplier Cap Fields​

FieldTypeDescription
supplier_cap_idstringSupplier capability ID
ownerstringOwner wallet address
checkpoint_idnumberCheckpoint when created/updated
created_atstringISO timestamp of creation
updated_atstringISO timestamp of last update
digeststringTransaction digest