set_liquidation_alert
Arm a liquidation alert: notify when a lending obligation's health factor falls to or below threshold.
protocol: kamino | marginfi (marginfi_account required for marginfi). threshold is the HF level (e.g. 1.2 warns before the <1.0 liquidation point). Evaluated every 30s by Celery beat; webhook_url is POSTed on trip.
Workflow: MONITOR step -- arm after opening a leveraged/borrow position so a deteriorating obligation loops you back to repay/de-risk. Pairs with get_health_factor. See get_trading_workflow.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| market | No | ||
| protocol | Yes | ||
| caller_id | No | ||
| threshold | Yes | ||
| webhook_url | No | ||
| wallet_address | Yes | ||
| marginfi_account | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||