On a betting exchange you can implement full cash out or partial cash out.
When implementing full cash out your profit or loss is one and the same
regardless of the outcome of the event.
By implementing partial cash out you decrease the amount of potential loss
but you also decrease the amount of potential profit
and your net result on the market still depends on the outcome of the match.

We will look in more detail at one particular case of partial cash out.
This is the special case in which you eliminate the potential loss but you keep the chance for profit.
If your initial bet loses, your net result on the market is zero (no profit and no loss).
If your initial bet wins, you get profit.
Of course, in order to achieve this the back odds should be greater than the lay odds of your bets.

This type of partial cash out brings you profit only in case your initial bet wins
whereas full cash out ensures you profit in all possible cases.
This is offset by the higher amount of profit that partial cash out gives you.
Last but not least, it keeps the thrill of betting to the last minute of the match.

Formulas

Partially closing a lay position:

Partially closing a back position:

where

A_{B} - back amount

A_{L} - lay amount

o_{B} - back odds

o_{L} - lay odds

R_{LW} - result (profit or loss) in case the lay bet wins

R_{BW} - result (profit or loss) in case the back bet wins