# 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`.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://erc20-docs.particle.trade/logic/open-long.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
