Skip to main content
GET
cURL

Authorizations

Authorization
string
header
required

Bearer token from Geomi. See Authentication for setup instructions.

Query Parameters

account
string
required
repay_usdc
string

Raw USDC units; clamped to the debt.

unpledge_asset
string

Requires unpledge_units.

unpledge_units
string

Response

The account before and after an unpledge, then a repay. The perp free-margin check on a repay is not modeled.

account
string
required
allowed
boolean
required
current
object
required
indices_as_of_secs
string
required
repay_applied_usdc
string
required

The requested repay clamped to the debt.

after
null | object

Null only when the unpledge exceeds the pledge.

reason
null | enum<string>
Available options:
unpledge_exceeds_pledge,
unpledge_exceeds_withdrawable,
pending_orders