> For the complete documentation index, see [llms.txt](https://docs.pearprotocol.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pearprotocol.io/api-integration/executing-trade/managing-open-position/close-position.md).

# Close Position

Entire pair trading positions can be closed using either market execution or TWAP (Time-Weighted Average Price) execution.

When closing a position, we reduce the asset's position size based on the specific value of the position being closed. For example, if you hold a BTC/ETH position worth $100 in BTC and a BTC/HYPE position worth $200 in BTC, and you choose to close the BTC/ETH position, we will reduce your BTC holdings by $100—not the total $300 across both positions.

Close position size can be done using [Positions](/api-integration/api-specification/positions.md#post-positions-positionid-close).
