Order Book System
Understanding the on-chain orderbook system that powers the Fixed-Rate Lending Protocol
Last updated
Was this helpful?
Understanding the on-chain orderbook system that powers the Fixed-Rate Lending Protocol
Last updated
Was this helpful?
Secured Finance's Loan Market Platform incorporates an on-chain orderbook system, a pioneering application in the DeFi space. This system facilitates the trading of with a specific maturity date.
An orderbook is an electronic list of buy and sell orders for Zero-Coupon bonds, organized by price level. It enhances transparency by providing visualized information on price, availability, depth of trade, and more.
A borrow order refers to an order to borrow crypto assets, equivalent to selling a bond on our platform. After pledging sufficient collateral, you can place a sell order, selling a Zero-Coupon bond and receiving the equivalent cash upfront. You then owe the obligation to repay the money with interest at maturity.
A lend order is an order to lend, equivalent to buying a bond. You buy a Zero-Coupon bond at a discount, which will be redeemable at par at expiration.
A Zero-Coupon bond is a debt security that doesn't pay interest (coupons) but is traded at a deep discount, rendering profit at maturity when the bond is redeemed for its full face value. On our platform, bonds will be redeemable at 100.
Bond Par Value
The value at which bonds are redeemed at maturity
100
Order Types
Types of orders supported by the orderbook
Market, Limit
Order Sides
Sides of the orderbook
Borrow (Sell), Lend (Buy)
Price Precision
Decimal precision for bond prices
2 decimal places
Minimum Order Size
Smallest order that can be placed
Varies by asset
A user wants to lend 1,000 USDC for a 3-month term at a 5% APR:
They navigate to the lending interface and select the 3-month maturity market
They choose to place a limit order to buy a Zero-Coupon bond
For a 5% APR on a 3-month term, they set their price at approximately 98.75 (calculated as: 100 / (1 + 0.05 × 0.25) = 98.75)
They specify the amount as 1,000 USDC
When the order is filled, they receive a Zero-Coupon bond that will be worth 1,000 USDC at maturity
At maturity, they automatically receive 1,000 USDC, earning approximately 12.5 USDC in interest
A borrower needs 5,000 USDC for 6 months and is willing to pay up to 6% APR:
After depositing sufficient collateral, they navigate to the borrowing interface
They select the 6-month maturity market
They choose to place a market order to sell a Zero-Coupon bond
For a 6% APR on a 6-month term, the price would be approximately 97.09 (calculated as: 100 / (1 + 0.06 × 0.5) = 97.09)
They specify the amount as 5,000 USDC
When the order is filled, they receive approximately 4,854.5 USDC upfront
At maturity, they will need to repay 5,000 USDC
The orderbook matches orders based on price-time priority. The highest buy (lend) orders are matched with the lowest sell (borrow) orders. If multiple orders exist at the same price, they are matched in the order they were placed (first come, first served).
If your order is not filled immediately, it remains in the orderbook until it is either filled, canceled by you, or expires (if you set an expiration time). You can monitor the status of your orders in the "Open Orders" section of the platform.
Yes, you can cancel any unfilled or partially filled order at any time. Once an order is filled, however, it becomes a position and cannot be canceled. You would need to close the position by taking an opposite position.
A market order is executed immediately at the best available price in the orderbook. A limit order is only executed at the specified price or better. Market orders provide immediate execution but may have price slippage, while limit orders give you price control but may not be filled immediately or at all.
For bonds with maturity less than 1 year: APR = (100/BondPrice - 1) × (365/DaysToMaturity)
For example, a 3-month bond priced at 98.75 would have an APR of approximately 5%: (100/98.75 - 1) × (365/90) ≈ 0.05 or 5%