# DEX Lens

**Start from the Dashboard**\
Click **“Create Subindex.”**

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

**Select Chain**\
Choose the blockchain network on which you want to track data and create your subgraph.

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

**Select Creation Method**\
Choose 'Create using Lenses'.

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

**Select a Template**\
Choose the **DEX Lens** template from the available options.

<figure><img src="/files/9l7J7KmzB4JqfX9SyVXX" alt=""><figcaption></figcaption></figure>

**Configure your Subgraph**\
Enter the relevant details and select the DEX of interest.&#x20;

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

**Select LP Pairs**\
GraphEngine will automatically search for and display popular LP pairs by volume currently active on the selected DEX. \
\
**Additional Pair Addresses**\
Alternatively you can else enter LP pairs manually by entering the correct pair address.&#x20;

**Choose Events to Track**\
Pick which events the subgraph should listen to (Transfers, Swaps, Mints, Burns, Add/Remove LP).

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

**Review Your Setup**\
A review page will show the events which will be listened to. Carefully check and validate before submitting.

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

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

**Submit for Approval**\
Click **“Create Subgraph.”** Your subgraph will appear in the **“My Subgraphs”** page. Once approved by the team, data ingestion will begin and the subgraph will be ready for querying.

<figure><img src="/files/8AvZwvgQjVkAdn2mHfyI" alt=""><figcaption></figcaption></figure>

**Check on My Subgraphs**\
As a final check. Look for your submitted subgraph in 'My Subgraphs' on the Dashboard awaiting approval.&#x20;

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


---

# 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://graphai-1.gitbook.io/graphai/graphai-platform/graphengine-closed-beta/graphai-lens-create-your-own-sub-graph/dex-lens.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.
