> For the complete documentation index, see [llms.txt](https://tsp-exchange.gitbook.io/tsp.exchange/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tsp-exchange.gitbook.io/tsp.exchange/perpetual-version-0.1.3/product-architecture/liquidity-depth-architecture.md).

# Liquidity depth architecture

## Tsp Liquidity Aggregation Advantages

<figure><img src="https://3689980294-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FePl7J3xkbsYHqel7Cev1%2Fuploads%2F1gBukcTrHn3ycuFxbyiL%2F101.jpg?alt=media&amp;token=ba1461f2-83d2-4426-8458-f7fbf0216ca6" alt=""><figcaption></figcaption></figure>

## TSP Opening Position Selection Process

The TSP platform selects platforms that can fulfill the opening position conditions based on the criteria entered by the user. Among the platforms that meet the opening position conditions, the final position size is determined by considering the current pool's transaction price, opening costs, and borrowing fees. The platform executes the opening position on the platform that offers the maximum position size, which is considered the optimal choice.

<figure><img src="https://3689980294-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FePl7J3xkbsYHqel7Cev1%2Fuploads%2FBAWgroke4czkNwkHdk6A%2F102.jpg?alt=media&amp;token=50cebad1-89ad-48e2-993d-5d32391c3dbe" alt=""><figcaption></figcaption></figure>
