Open a SOL call or put with a set risk budget. When net profit reaches that budget, Halfmark closes half the position and lets the other half run to expiry.
Move SOL. See both halves.
One command. Four states.
Watching
Every minute the keeper marks net P&L at the price a close would get now, after fees.
net_est < +BTarget reached
The first tick at or above +B creates one reduction command. Later ticks above +B add nothing.
net_est ≥ +B → RD-xxxxReducing
Reduce-only orders bring the hedge down to half. Partial fills show as they land.
q → q ÷ 2Complete
Half the result is realized. The other half follows the model to expiry, and the −B floor still covers the whole position.
locked + running = netThree ways a week ends.
The engine, line by line.
Each position stores the model version, price source and time it was opened with. A newer model never rewrites an old position.
σ = realized vol of hourly SOL-PERP marks, 7 daysRecorded with the model version, price source and time at open. Under 72 hours of history, the ticket is refused.
q = B ÷ c(S, K, T, σ)Your budget B buys q units at the Black–Scholes premium c, rate zero.
target = q × N(d₁) · put: q × (N(d₁) − 1)The keeper sends only the difference from the executed size, and only past 5% of q.
net_est ≥ +B ⇒ q → q ÷ 2Net at the executable close price after fees. One command; the hedge is brought down to the new target.
net_est ≤ −B ⇒ close all, reduce-onlyApplies to the whole original position. A gap or a liquidation can pass it, so a loss can exceed B.
One account per position.
Each position opens its own account under the Halfmark program, funded in USDC. The keeper may only rebalance and reduce inside the rule you signed. Withdrawals go to the owner address and nowhere else.
The token pays for the keeper.
Rebalances are prepaid
Each rebalance costs 0.02 from a separate service balance. After launch the balance can be topped up in $HMARK.
A close always goes out
0.50 per position is set aside at open. If the service balance runs out, the reserve still pays for the close.
Pump.fun, then here
$HMARK launches on
Pump.fun. Collateral and results stay in USDC.