“Price ran through my range. What price did I actually sell my DELL at?”
The short version
$1,000 at price 100 in an 80–125 range: price runs past 125, your 5 DELL sell at an average of $111.80, and you hold $1,059.02 in USDG.
average fill price = √(start price × stop price)where price starts × where it stops · key variable: your edge, the stop if price runs pastrunning up past your top edge: √(100 × 125) = $111.80
Illustrative prices · fees left out
1 · See it
Watch your DELL turn into USDG
As price rises through your range, the pool sells your DELL a little at a time; as it falls, it buys back. Drag to 110: you've sold 2.2040 DELL at an average of $104.88.
Traded so far
Nothing yet
Drag the price →
Position
$1,000.00
Just holding $1,000.00
In range · earning your share of fees
The blue stretch is what you've traded; the diamond is your average price.
2 · The order
It sells like an order spread across every price
Table view
Price
DELL sold so far, at average
105
1.1414 at $102.47
110
2.2040 at $104.88
118
3.7616 at $108.63
125+
5 at $111.80
Each step up sells a little more, and your average climbs toward $111.80.
3 · The formula
The average is the geometric middle
Price started at 100, not your 80 edge, so the stretch it crossed is 100 to 125: √(100 × 125) = $111.80.
You sell more DELL near the bottom of the stretch, so your average leans low.
4 · Past an edge
A ceiling above, a floor below
Past 125 you sit flat at $1,059.02 while holding keeps climbing. Below 80 you hold 10.5902 DELL: your 5 plus 5.5902 bought at $89.44 on average.
Your positionJust holdingGap vs just holding
Table view
Price
Your position
Just holding
70
$741.31
$850.00
80
$847.21
$900.00
125
$1,059.02
$1,125.00
140
$1,059.02
$1,200.00
One token past each edge: a flat ceiling, a falling floor.
Deposit only USDG and it sits in a one-sided range just below price: 83.53–98.02 at the app's starting width (17.35%). Fall through it all and you buy 11.0515 DELL at $90.49 on average. It earns nothing until price enters it.