Ghostbag

Guide · accounting

Memecoin PnL, without mystery.

Separate money spent, money returned and the live value still held.

The four numbers on the tape.

Invested is the total wallet value consumed by successful buys, including applicable execution costs. Sold is the net amount returned to the paper wallet by successful sells. Remaining marks the tokens still held at the latest available spot price. PnL combines realized PnL from sells with unrealized PnL on the remaining tokens.

Average entry and remaining cost basis

When several buys build one position, the engine tracks token quantity and cost basis in integer base units. Partial sells remove the proportional cost basis from the held position. The remaining figure is a current valuation, while remaining cost basis is what the unsold tokens originally cost; the two should not be confused.

Market-cap multiples

If supply is unchanged, the price multiple equals the market-cap multiple. A move from a $20,000 entry market cap to $100,000 is a 5× gross price multiple. A 1 SOL position would therefore have a 5 SOL gross marked value before exit impact and fees. Actual simulated proceeds can be lower because the sell changes the pool and incurs costs.

SOL and USD views

Changing the display currency does not recalculate history with a different method. Native values remain the accounting source. USD display converts them with the available native-asset USD rate, while historical execution exports preserve the rate stored with each trade.

See why this depends on liquidity and price impact, then install Ghostbag to practise it.