Optimal Liquidation of Perpetual Contracts
Ryan Donnelly, Junhan Lin, Matthew Lorig
TL;DR
The paper addresses optimal liquidation of a position in a perpetual contract under permanent and temporary price impact and funding costs. For the identity payoff $ψ(s)=s$, it derives a closed-form optimal trading speed $ν^{*}$ that depends on inventory and a funding-rate state, with the functions $ξ$ and $π$ solving Riccati-type ODEs. For general payoffs, it develops asymptotic approximations in the small funding-rate parameter $β$ and in short horizon $T$, including a second-order expansion and a short-horizon closed-form surrogate that remains near-optimal. The results bridge optimal execution with perpetual-contract dynamics and are supported by simulations showing how funding-rate effects alter liquidation patterns and the relative performance of the approximations.
Abstract
An agent holds a position in a perpetual contract with payoff function $ψ$ and attempts to liquidate the position while managing transaction costs, inventory risk, and funding rate payments. By solving the agent's stochastic control problem we obtain a closed-form expression for the optimal trading strategy when the payoff function is given by $ψ(s) = s$. When the payoff function is non-linear we provide approximations to the optimal strategy which apply when the funding rate parameter is small or when the length of the trading interval is small. We further prove that when $ψ$ is non-linear, the short time approximation can be written in terms of the closed-form trading strategy corresponding to the case of the identity payoff function.
