Market status
MarketCalendar computes each stock’s status from the US Eastern calendar. The status sets that stock’s borrowing discount and debt cap.
Borrowing limits by market status
The table shows the values configured in the deployment script. The debt cap applies to accrued USDT debt across all borrowers using the same stock.
| Status | When it applies (ET) | Effective LTV | Debt cap per stock |
|---|---|---|---|
OPEN | Regular session, 9:30 a.m. to 4 p.m. | 50% | 400 USDT |
EXTENDED | Pre-market and after-hours. | 48% | 300 USDT |
CLOSED | Overnight before a trading day. | 45% | 200 USDT |
WEEKEND | Friday 8 p.m. to Sunday 8 p.m. and exchange holidays. | 42.5% | 100 USDT |
HALTED | Trading halt set by a keeper or admin. | Borrowing blocked | Not applicable |
CORP_ACTION | Split or other corporate action in progress. | Borrowing blocked | Not applicable |
With $1,000 in collateral, the weekend LTV sets a $425 collateral-based limit. The stock’s 100 USDT cap limits total debt against that stock. A new loan depends on the remaining room under that cap and the available USDT in the pool.
The current LTV also applies to withdrawals while debt is outstanding. Liquidation uses a separate threshold, so a session change alone leaves health unchanged when prices and debt are fixed.
Keeper and admin overrides
The schedule comes from the on-chain US Eastern calendar. The keeper or admin can apply a stricter status for a limited time, never a looser one. The calendar admin can set holidays, early closes and temporary overrides through MarketCalendar. The deployment script seeds NYSE holidays and early closes through 2028.
Halts and corporate actions
A stock-specific HALTED or CORP_ACTION override blocks new borrowing against that stock and withdrawals of collateral backing outstanding debt. Repayment remains available. Other eligible stocks can draw from the shared reserve while USDT is available. Set CORP_ACTION before a known split. A feed that updates before the multiplier can otherwise trigger liquidation.