Margin, the daily mark and settlement
Each day the program values every position at the mark, built from the market’s own trades, and moves the price change from one side to the other in US dollars.
The rule
Variation margin is a transfer, not a top-up. At each settlement the program reads the mark, computes the change in value of every account’s remaining hours, and moves that amount between accounts. The losing party is never asked: the program moves the money, and a loss already transferred cannot be avoided by walking away.
For each contract, an account’s variation margin at a settlement is:
Variation margin = (today’s mark − the previous mark) × GPUs per node × hours remaining × nodes
Nodes count positive for a long and negative for a short. An account’s variation margin is the sum over its contracts, which it pays if negative and receives if positive. Because node-months are interchangeable, settlement runs across all accounts rather than pair by pair, and the program is the counterparty to every position. The two sides sum to zero whenever every loser pays, and Default protection and guarantors covers the case where one does not.
A position’s mark starts at its trade price, so on every hour the variation margin moved adds up to exactly the mark less the contract price. A provider that keeps serving is paid the mark each hour and so nets its contract price, less the delivery fee. One that walks receives nothing further, pays a default fine and gets back only what is left of its margin, so serving beats walking by at least the fine.
Before the delivery month, each settlement counts the month’s full hours. In delivery the month’s mark is frozen, so no variation margin moves on it, and each served hour is paid at the frozen mark.
The mark
By the owner’s decision, the mark is the market’s own value, built from transacted prices only. The venue’s own clearing prices, its prints, are the primary source, and a reference built from transacted lease prices anchors the front of the curve. Posted list prices are never an input.
Each day the program holds a curve for each grade and region, with one point for each delivery month. A position’s mark is its contract’s point, and a strip’s mark is the hour-weighted average of its months’ values.
How the curve is built
How the program builds the curve is a builder’s call, a default that can change without reopening the design. Within it, the owner has decided that only the venue’s own prints set a traded month’s value, and that an outside reading can confirm a move but never make one. At the level of the white paper:
- A month whose latest close traded at least its usual daily volume takes that day’s price. A thinner month takes an average of its recent prices with the highest and lowest dropped.
- By the owner’s decision, a month whose own measured volume has not yet passed a starting floor, itself a placeholder still to be set, is in bootstrap: no single print sets its value, it always takes that trimmed average, and the program publishes the state with the price. Every month starts in bootstrap.
- The anchor, a second price, measures what replacement compute costs now. It blends leases open and paying on the Akash lease market with the nearest month still trading, each weighted by how precisely it is measured.
- Each month’s value has a band, a multiple of its measured volatility, and a move inside the band is taken at once. A move beyond it is taken in full only when it is precisely measured and either both legs of the anchor moved beyond the band the same way or the next close prints again, on full volume, within one band of the earlier print. Otherwise the value moves to the band’s edge and the rest waits. Volume alone never admits such a move, and a month in bootstrap can be confirmed only by the next close.
- A month with no qualifying price is filled in between the nearest months that have one, and a month beyond the last traded one keeps that month’s ratio to the anchor.
- A contract’s mark freezes for its delivery month at the trimmed average of the daily values from its last few closes, its settlement window. The window’s length is a placeholder still to be set. A thin settlement window is blended toward the anchor.
Where the statistics start
Until the market has its own record, its price statistics start from transacted price history that the market is designed to license from outside publishers. That history is not public. It is one of the checks a large move must pass before the mark takes it in full, and it never sets a price. The venue’s own data replaces those starting values as it builds up.
How often
Settlement is daily, aligned with the close, by a builder’s call that can change. Hourly settlement would need only an hourly anchor.
What an account holds
Opening an account has the full rules. The daily settlement reads these parts of them.
- An anonymous account posts the full notional value of a position on either side. A long’s posting also prepays its hours, so it is never asked for more. A short must always hold its floor, one close-out window of stress on its remaining hours at the mark plus the add-ons below, and a position too large to unwind within one window must hold more.
- A certified account posts a requirement set by measured risk, which is larger for a position too large to unwind within one window, less an unsecured allowance from its certification agent, plus the add-ons below. Its floor is the base requirement less the allowance, plus a share of the add-ons that is a placeholder still to be set.
- The add-ons are posted in full with no allowance: the position’s loss at the worst mark of the last window, the gap between the mark and the anchor near and during delivery, and, for a certified buyer in delivery, one day of payments. An anonymous long’s posting already covers them.
- The stress rate is a high quantile of the price move over one close-out window, measured from data.
- The close-out window is the days from a floor breach to the earliest fill of the order that closes the position out, read at a high quantile of the venue’s record. At its initial value it is four daily settlements.
An account below its floor has a grace period, whose length is a placeholder still to be set, to top up before it is closed out. A floor breach caused by a move the band has not yet confirmed starts the grace period only at the close that confirms it. For a certified account, variation margin is never unsecured: every day’s transfer is paid in cash, in full, from the balance and then from what guarantors have posted. The allowance reduces what is held against a move that has not happened, never what is owed for one that has. An account may withdraw its balance less its requirement less the gains still held.
Held gains
By the owner’s decision, a variation margin credit, the credit an account receives because the mark moved in its favour, is held for one close-out window from the settlement that credited it, whatever the day’s move. At its initial value, that is four settlements.
- A held gain is in the account, and it counts toward the requirement and the floor at once.
- A later debit takes from held gains before the balance, the newest gain before older ones, so a reversal takes back the gain it reverses before it touches posted margin.
- A held gain releases by age, one window after it was credited, with no test.
- Only variation margin credits are held. Money the venue owes an injured party, or gives back after a close-out, is spendable at once.
The hold keeps a trading gain on the venue until the move that made it has survived one window. A settlement is flagged on one of three measured signs: a close-out order filled at the limit of its protection, a close whose bid-ask spread was too wide for its band, or a move beyond the band that reversed within the window. A flagged settlement’s credits release one window later. A flag does nothing to a loser, so a loser cannot use one to stall its own close-out.
Each day, in order
Once the selected validators have signed the day’s lease readings and the keeper has built the curve, the daily settlement does the following, among other things, in the order the specification lists them:
- It transfers variation margin.
- It pays each provider for served hours at the mark, less the delivery fee of 3% of each hour’s payment at its initial value, and charges it for missed hours, as Delivery explains.
- It recomputes every account’s requirement, floor and top-up target.
- It releases held gains past one close-out window, or past two where the settlement that credited them was flagged.
Days are settled in order. The specification lists the transfer before the release, but it does not say in words which goes before the other when both fall due at one settlement. The worked week, like the site’s engine, takes the debit before the release. The other order would change only the amount counted as released on day 5, not what is held or free.
A worked week
This example is illustrative. A long of four nodes, each of eight GPUs, is bought at 7.05 USD per GPU-hour for a month of 720 hours that has not yet begun, so each settlement counts all 720 hours. It follows only variation margin and the hold, so the free balance counts, from zero, only the credits that have left the hold. All amounts are in USD.
| Day | Mark | Move | Variation margin | Held after settlement | Released | Free balance |
|---|---|---|---|---|---|---|
| 1 | 7.25 | +0.20 | 4,608.00 | 4,608.00 | 0.00 | 0.00 |
| 2 | 7.15 | −0.10 | −2,304.00 | 2,304.00 | 0.00 | 0.00 |
| 3 | 7.30 | +0.15 | 3,456.00 | 5,760.00 | 0.00 | 0.00 |
| 4 | 7.30 | 0.00 | 0.00 | 5,760.00 | 0.00 | 0.00 |
| 5 | 7.10 | −0.20 | −4,608.00 | 0.00 | 1,152.00 | 1,152.00 |
| 6 | 7.20 | +0.10 | 2,304.00 | 2,304.00 | 0.00 | 1,152.00 |
- Day 1. The mark starts at the trade price, so the opening settlement moves the whole rise from 7.05 to 7.25: 0.20 × 8 GPUs × 720 hours × 4 nodes = 4,608.00, credited to the long and held until day 5.
- Day 2. The mark falls 0.10, a debit of 2,304.00. It takes 2,304.00 from day 1’s held credit, which leaves 2,304.00 held and the free balance untouched.
- Day 3. The mark rises 0.15, a credit of 3,456.00, held until day 7. Held gains total 5,760.00.
- Day 4. The mark does not move, so nothing is transferred.
- Day 5. The mark falls 0.20, a debit of 4,608.00, taken before the release. It takes all 3,456.00 of day 3’s credit, the newest, and then 1,152.00 of day 1’s remaining 2,304.00. Day 1’s credit is now four settlements old, so its last 1,152.00 is released.
- Day 6. The mark rises 0.10, a credit of 2,304.00, held until day 10.
White paper Appendix A.1 and A.2 follow a longer example at the paper’s initial values, from a trade and its margin to a certified buyer closed out after a fall in price. The paper is on the white paper page.
What is still open
- The length of the hold, and whether anonymous longs need it at all, are open.
- Whether the base margin rate should be measured for each direction of move is left to calibration.
- The specification recommends a shadow window, computing margin without enforcing it, before the model margins anyone.
- Whether a close with no qualifying print should mark to the closing midpoint when the spread is narrow is open.
- Which transacted sources the statistics start from is open.
- Whether licensed price history may confirm a large move where the lease leg has no reading, in place of both legs of the anchor, is the owner’s call.