> For the complete documentation index, see [llms.txt](https://erc20-docs.particle.trade/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://erc20-docs.particle.trade/logic/open-long.md).

# Open Long

<figure><img src="/files/DXTSnZsPQQEKsI60k3MK" alt=""><figcaption></figcaption></figure>

Notes:

* The text matches the variable names in code;
* The colors for text and lines/symbols are matched;
* For illustration, assume no price impact, the grey price line is tangent to the curve;
* A feeAmount will be applied to marginFrom + amountFromBorrowed;
* In practice, `marginTo` in "Open Long" is 0;
* Can also borrow out-of-range liquidity, but `currentPrice` must only be on the right of `tickLower`.
