PolyEdge
Browse documentation

Settlement & PnL

Polymarket outcomes are binary: at resolution the winning side is worth $1 per share and the losing side $0. PolyEdge tracks both your unrealized PnL while a position is open and your realized PnL once it settles.

While a position is open

Unrealized PnL marks your position to the current market price:

unrealized = (currentPrice − entryPrice) × shares

You can see this live on each bot's Performance tab and on your Portfolio.

At resolution

When a market resolves, the bot reads the final outcome from Polymarket and settles each affected position:

  • The winning outcome token pays $1.00; the losing one pays $0.00.
  • Realized PnL is locked in as (payout − entryPrice) × shares.
  • The trade is marked CLOSED with its exit price and settlement time.

To avoid acting on noisy mid-prices, settlement only triggers on a decisive outcome (a token trading at essentially 0 or 1). Markets that aren't resolved yet are re-checked on a short interval, and resolved outcomes are cached briefly to avoid redundant lookups.

Paper settles too
Simulated (paper) positions settle with the exact same logic as live positions, so paper PnL is a faithful preview of how a strategy would have resolved.

Where to see it

  • Portfolio — total value, unrealized PnL, realized PnL, and open positions.
  • Transactions — the full closed history, filterable by bot and status, with on-chain links for live trades.