SOLSolana

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 < +B

Target reached

The first tick at or above +B creates one reduction command. Later ticks above +B add nothing.

net_est ≥ +B → RD-xxxx

Reducing

Reduce-only orders bring the hedge down to half. Partial fills show as they land.

q → q ÷ 2

Complete

Half the result is realized. The other half follows the model to expiry, and the −B floor still covers the whole position.

locked + running = net

Three 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 days

Recorded with the model version, price source and time at open. Under 72 hours of history, the ticket is refused.

q
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.

+B
net_est ≥ +B ⇒ q → q ÷ 2

Net at the executable close price after fees. One command; the hedge is brought down to the new target.

−B
net_est ≤ −B ⇒ close all, reduce-only

Applies 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.

SOL Solana programUSDC USDC collateralDrift Drift SOL-PERPPyth Pyth prices
Phantom PhantomSolflare SolflareBackpack Backpack

The token pays for the keeper.

Rebalances are prepaid

Each rebalance costs USDC0.02 from a separate service balance. After launch the balance can be topped up in $HMARK.

A close always goes out

USDC0.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 Pump.fun. Collateral and results stay in USDC USDC.

Pump $HMARK CAPosted here at launch on Pump.fun

Set the rule once.

Open the terminal