Skip to main content
POST
Creates a risk monitor, pre-liquidation check, or post-liquidation action hook.

Path Parameters

string
required
Market ID.

Body Parameters

string
required
One of monitorRisk, beforeLiquidation, or afterLiquidation.
string
Display name (max 128 chars). Defaults to a name based on the hook type.
string
URL to poll for risk data. Required for monitorRisk hooks.
array
Array of field checks applied to the risk URI response. Each object has path (dot-notation), optional operator (>, >=, <, <=, ==, !=), and optional threshold.
string
Polling interval for monitorRisk hooks. One of 1m, 5m, 15m, 30m, 1h, 6h, 12h, 24h.
array
Array of on-chain parameter checks for beforeLiquidation hooks. Each object has parameter (healthFactor, collateralValue, debtValue, collateralRatio, interestAccrued), operator, and threshold.
string
Required for afterLiquidation hooks. buy (auto-bid on auctions) or inform (send webhook).
string
Maximum price per token for buy action hooks.
string
Webhook URL for inform action hooks.
object
Additional fields merged into webhook payloads.
array
Array of hook IDs whose failure triggers this hook. Max 10.