Hooks
Execute Hook
Run a hook immediately, outside its schedule
POST
Triggers one run of a hook and returns the result synchronously. Useful for validating a new hook before enabling it. The run is recorded in the execution log exactly like a scheduled run.
What the request body must carry depends on the hook type:
Path Parameters
string
required
Market ID.
string
required
Hook ID.
Body Parameters
object
Required for
beforeLiquidation hooks. Supply the parameters your parameterChecks reference, for example healthFactor, collateralValue, debtValue, collateralRatio, interestAccrued.object
Required for
afterLiquidation hooks.Result Semantics
data.success reports whether the hook ran without error. data.result reports the outcome of the evaluation. A hook that runs cleanly and evaluates to false returns success: true with result: false, which is not an API error.
Skipped buy actions return result: false with a reason field, for example Price exceeds max buy price or Auction not active. An insufficient balance on the bidding wallet returns success: false with an error describing the shortfall in the market’s borrow asset.