Skip to main content

Get Margin Pools

Retrieve metadata for all available DeepBook Margin pools. This endpoint returns essential information about each margin pool including asset type, interest rate parameters, supply caps, and utilization settings.

Endpoint

GET /deepbook-margin/pools

Use Cases

  • Pool Discovery — List all available margin pools for a lending interface
  • Interest Rate Display — Fetch interest rate parameters to show current rates
  • Configuration Lookup — Get pool parameters for client-side validation
  • Market Overview — Display all active margin pools with their configurations

Parameters

Query Parameters

ParameterTypeRequiredDescription
assetTypestringNoFilter by asset type (e.g., 0x2::sui::SUI)
deepbookPoolIdstringNoFilter by DeepBook pool ID
api-keystringYesYour Surflux API key for authentication

Response

Returns an array of margin pool objects. Each pool contains:

FieldTypeDescription
margin_pool_idstringUnique identifier for the margin pool on-chain
maintainer_cap_idstringMaintainer capability ID for pool administration
asset_typestringFull type identifier of the pool's asset
supply_capnumberMaximum amount that can be supplied to the pool
max_utilization_ratenumberUpper bound on utilization (e.g., 80%)
protocol_spreadnumberPercentage of interest that goes to protocol fees
min_borrownumberMinimum loan size to prevent spam
rate_limit_capacitynumberRate limiting capacity
rate_limit_refill_rate_per_msnumberRate limit refill rate per millisecond
rate_limit_enabledbooleanWhether rate limiting is enabled
base_ratenumberBase interest rate
base_slopenumberInterest rate slope below optimal utilization
optimal_utilizationnumberTarget utilization rate (kink point)
excess_slopenumberInterest rate slope above optimal utilization
deepbook_pool_idsstring[]Associated DeepBook pool IDs
pool_cap_idstring | nullPool capability ID
extra_fieldsobject | nullAdditional pool metadata
digeststringTransaction digest of last update
updated_checkpoint_idnumber | nullCheckpoint of last update
created_atstringISO timestamp of pool creation
updated_atstringISO timestamp of last update