Find the Exit
Find the Exit closes a delta-neutral pair in slices from the server once its price PnL reaches a target, or before a funding payment would charge it.
Find the Exit closes an open pair for you in slices, at a moment when the prices of your two legs have moved in your favor, instead of taking whatever the books offer right now. It runs on the server, so you can start it, close the tab, and let it wait for hours or days.
On a delta-neutral pair the two legs mostly cancel, so price PnL is small. It comes from the two venues' prices drifting apart or together after you entered. Find the Exit waits for that drift to work in your favor, then closes both legs together.
How it decides when to close
The job reads both legs every few seconds and compares the pair's price PnL with a target.
- Price PnL is measured at the mark price against your entry prices, before fees and funding.
- The target is half the best price PnL the pair has held since you opened it. A new best has to hold for a few checks in a row to count, so a one-off spike can't raise the target.
- If the pair has never been in profit, the target is zero: the job closes once price is back at entry.
- A check where one venue's price looks frozen, or jumps away from the other venue's, is skipped.
The target is on price PnL at mark, not on what you net. Slices fill at the bid and ask and pay taker fees, so a close at target can still net less than zero once the fees to open and close are counted. Net if closed now, in the preview, shows the full figure before you start.
Max wait
Max wait is No limit (the default), 12h, 24h or 3d. With no limit, the target stays at half the best for as long as the job runs. With a limit, the target falls from half the best toward zero as the deadline nears, fastest at the start.
When the wait runs out, the job closes whatever is still open at market and ends. Gives up in, in the job panel, counts down to it. With No limit, the job waits until the target is met, a funding payment would charge you, or you cancel it.
Funding payments
The job watches the next funding payment. If one is due within 60 seconds and would charge you, it closes everything left at market, tells you on Telegram, and ends as Closed (pre-negative tick).
It holds through a payment that is small, and through one leg's settlement while the pair as a whole still earns funding at current rates. The preview says when this applies.
How it slices
When price PnL reaches the target, the job sizes a slice from both live order books: the largest amount both books can fill close to their top price, above a minimum size. Both legs close the same amount at market at the same moment, so the pair stays delta-neutral as it shrinks. Deep books close the pair in a few large slices; thin books take more, smaller ones. When the books can't take even the minimum, the job waits.
If one leg runs out before the other, the job closes what is left of the other leg at market straight away. A leftover smaller than the venue's minimum order can't be closed with an order; it stays open, and Telegram tells you its size.
What it costs
Each slice is a market order on both legs, so it pays each venue's taker fee, plus ProFunding's builder fee on venues where orders carry one, and any flat per-order fee. Funding keeps settling on whatever is still open while the job waits.
Before you start
- Saved keys for both venues on your ProFunding account, not expired or about to expire. See Wallets and keys.
- A venue pair that supports closing from the server.
- No other server job on the same pair, such as a TWAP or slow close.
- A linked Telegram chat, if you want progress messages.
When something is missing, the route in the close sheet shows Needs setup and lists the fix, such as Save your VENUE keys or Re-login to VENUE (session expired).
Start a job
- Open the position. In the new layout, click the pair's lane on the Positions tab.
- Under Getting out, pick Find the Exit and click Review Find the Exit. In classic, click Preview close and pick Find the Exit.
- Read the forecast, pick a Max wait, and click Start Find the Exit.
| Preview field | What it means |
|---|---|
| Price PnL | The pair's price PnL now, at mark. The number the job compares with the target |
| Target | The price PnL the job would close at if it started now |
| Net if closed now | What a market close of the whole position would net now, after fees to open, close fees and funding so far |
| exit cost | The taker fees a market close of the whole position would pay now |
| next tick | The next funding payment at your size, and when |
The job closes the size and entry prices it reads from the venues when it starts. You can close the tab.
Follow a running job
The position page shows the job's panel: how much has filled, the price PnL of the filled slices, the target against the best since open, and Gives up in when there is a deadline. The Decision log records what it did and why it waited: waiting below target, target met but books too thin, a new confirmed peak, each slice filled, and the final line.
With Telegram linked, the job messages you after 4 hours, at 12 hours and every 12 hours after that, at 25%, 50% and 75% filled, before a forced close ahead of funding, and when it finishes.
Stop a job
Click Cancel in the job panel. In Telegram, /orders and /cancel list running jobs with a cancel button. From MCP, call find_exit_cancel.
Cancelling stops new slices. What filled stays closed, and the rest stays open as a normal pair. If the legs were uneven when you cancelled, the log and Telegram name the amount to close by hand.
A guard set to Auto-close cancels the job first, then closes the position. If you close both legs yourself on the venues, the job notices and finishes. If you close only one, the job stops and warns you the other leg is still open.
How a job ends
| Status | What is left open |
|---|---|
| Find-the-Exit completed | Nothing, or a leftover below a venue minimum. Includes a close at market when the max wait ran out |
| Closed (pre-negative tick) | Nothing. The rest was closed at market ahead of a funding payment |
| Find-the-Exit cancelled | Whatever hadn't filled |
| Find-the-Exit failed | The pair may be partly open. Check the position |
From MCP or Telegram
The MCP tools cover the whole flow: find_exit_preview, find_exit_start, find_exit_status and find_exit_cancel. See the MCP tools reference. Telegram can list and cancel running jobs but can't start one.
FAQ
What does Find the Exit wait for?
It waits until the pair's price PnL at mark reaches half the best price PnL since you opened, or back at entry if the pair has never been in profit, then closes both legs in slices.
What happens when the Max wait runs out?
The target relaxes toward zero as the deadline nears, and when the wait runs out the job closes whatever is still open at market. With No limit it waits until the target is met.
Does a close at target always make money?
No. The target is on price PnL at mark, before fees and funding. Slices pay taker fees, so a close at target can still net less than zero; Net if closed now in the preview shows the full figure.
Questions?
Ask in our Telegram chat. Traders compare pairs, venues and fills there, and the team answers questions.