# How to Count Your Tickets

There are 3 types of positions that will be counted in the Lottery, with 3 different formulas each.&#x20;

* Longest Position
* Other Positions&#x20;
* Liquidated Positions&#x20;

{% tabs %}
{% tab title="Longest Position" %}

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

The longest position is any position that was opened at any time during the lottery duration.&#x20;

**ℹ️ Note:** The longest position can be a closed position. However, it cannot be liquidated for it to be counted as the longest position. Your ticket count might change depending if:

* Your position has been liquidated or;
* You have only one position during the lottery duration and that position has been liquidated. In that case, your tickets will be calculated under the [Liquidated Position formula](#liquidiated-position).
  {% endtab %}

{% tab title="Other Positions" %}

<figure><img src="/files/7MKbAwQbanEmbFeGwb2I" alt=""><figcaption></figcaption></figure>

These positions are positions that have been opened during the lottery period and are not the longest position. These positions can be closed positions, but not liquidated positions.&#x20;

**ℹ️ Note:** Other positions can be closed positions. However, it cannot be liquidated for it to be counted in this formula. Your ticket count might change depending if:

* Your position has been liquidated or;
* You have only one position during the lottery duration and that position has been liquidated. In that case, your tickets will be calculated under the [Liquidated Position formula](#liquidiated-position).
  {% endtab %}

{% tab title="Liquidated Position" %}

<figure><img src="/files/WsPoS4w5T1c1o4Scd0db" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}


---

# 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://guide.dem.exchange/demex-rewards/past-events/2023/special-events/demex-incentivized-devnet-ended/the-hodl-lottery/how-to-count-your-tickets.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.
