builderLiquidations
Stream live liquidation fills of your users. Based on last touch attribution, if the last non-liquidation fill for that coin had your builder code, the liquidation will be broadcast to your channel.
Every live data message includes both routing identifiers with the same value:
{"type": "builderLiquidations", "channel": "builderLiquidations"}Other payload fields are omitted above. Existing clients may continue routing on either field.
Note: TWAP fills do not carry builder codes. If a user's last fill before liquidation was a TWAP fill, no builder liquidation notification will be sent.
Subscribe
{
"type": "subscribe",
"subscription": {
"type": "builderLiquidations",
"builder": "0x..", // your builder address
"aggregateByTime": true
}
}
Parameters
builder
string
Yes
-
Your builder address
dex
string
No
null
Filter by DEX: "xyz", "main" ( for fills only on first dex)
aggregateByTime
boolean
No
true
Aggregate multi-fill liquidations by (user, time, order_id)
Unsubscribe
note: make sure to use exactly the same message as subscription message.
Liquidation data format
Each message contains an array of liquidation fills. Each fill is a tuple of [user_address, fill_data].
Examples
Error messages:
Common errors
Last updated