Bidding on Liquidations
This guide covers how to integrate liquidation bidding into your application, allowing users to acquire collateral at discounted prices when CDP positions are liquidated.
Overview
How It Works
1. User places order: "Buy BTC at 5% below oracle price"
└─> Order sits in RUJI Trade orderbook
2. Borrower's position becomes liquidatable
└─> Liquidation solver executes liquidation
3. Solver swaps collateral (BTC) for debt token (USDC) via a market order on RUJI Trade
└─> If the market order creates a large enough wick, the order gets filled at 5% discount
4. User withdraws filled order
└─> Receives BTC acquired at discounted priceKey Benefits
RUJI Trade Tracking Orders
Placing Liquidation Bids
Order Message Structure
Parameters
Field
Type
Description
Side Explanation
Code Examples
Place a Bid (TypeScript)
Query Your Orders
Withdraw Filled Orders
Modify Order Amount
Multiple Orders at Different Discounts
How Orders Get Filled
Fill Priority
Pro-Rata Example
Bid Pool Mechanics
Fees
Fee
Rate
When
Risks and Considerations
Market Risk
Liquidity Risk
Timing Risk
Recommendations
Supported Trading Pairs
Pair
Contract
Message Reference
ExecuteMsg::Order
QueryMsg::Orders
QueryMsg::Config
Last updated
