# Getting Started

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

{% embed url="<https://warehouse.xfi.ms>" %}

You can create QUERIES (1), create DASHBOARDS (2) combining queries and visualizations built for them, TAG (3) them, and PUBLISH (4) for  public usage. Queries should be published in order to be available for dashboards and public. Dashboards should be published in order to be available from outside. Let’s take a look for a “XFI Pools Activity” (5) dashboard for example.

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

{% embed url="<https://warehouse.xfi.ms/dashboards?order=-created_at&page=1&page_size=20>" fullWidth="false" %}

Here we have a set of QUERY DASHBOARDS (1), global params for dashboards (2),  and REFRESH rate (3). In order to go down to the QUERY (4), select it from DROPDOWN (5).

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

{% embed url="<https://warehouse.xfi.ms/dashboards/xfi_pools_activity?p_dates=d_last_month&p_limit=100&p_network=xfi_test>" %}

On a query page there is a SQL QUERY (1) with PARAMS (2). On a left you can find a LIST OF TABLES (3) for a network, and select REQUIRED TABLE (4). Query result is found in a TABLE (5). Next, take a look at VISUALIZATION (6).

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

```sql
WITH
    toUnixTimestamp(toString('{{dates.start}}')) AS dateStart,
    toUnixTimestamp(toString('{{dates.end}}')) AS dateEnd
SELECT 
    pool_address,
    wallet_address,
    DATE(block_timestamp) as timestamp,
    CAST(token_addresses[1] as CHAR) as tokenFrom,
    CAST(token_addresses[2] as CHAR) as tokenTo,
    amounts[1] as tokenFromAmount,
    amounts[2] as tokenToAmount,
    transaction_type
FROM xfi_test.dex_trades
```

{% embed url="<https://warehouse.xfi.ms/queries/85/source?p_dates=d_last_month#130>" %}

Go down the VISUALIZATION CONFIG (1, 2), select CHART (3) type and choose required AXIS AND PARAMS (4). There’s a variety of dashboards you can build (5).

<figure><img src="/files/6AjDQiBo9IIIXhdZkcM8" alt=""><figcaption></figcaption></figure>

Query can be used via REST (1), dashboard can be published via URL (2).

<div data-full-width="true"><figure><img src="/files/yyxZ1aDGfOE1h5wZpmmu" alt=""><figcaption></figcaption></figure></div>

{% embed url="<https://warehouse.xfi.ms/queries/85/source?p_dates=d_last_month#-1>" %}

{% code title="CURL" overflow="wrap" %}

```
curl -X POST 'https://api.dev.dex.guru/wh/xfi_addresses_interaction?api_key=sTa5PAljgZuakDAojY8YipKcUq0jHQH2mI8xKlxn' -H 'Content-Type: application/json' --data '{"parameters": {"dates":"d_last_month"}}'
```

{% endcode %}

{% code title="JS" overflow="wrap" %}

```
fetch( "https://api.dev.dex.guru/wh/xfi_addresses_interaction?api_key=sTa5PAljgZuakDAojY8YipKcUq0jHQH2mI8xKlxn", { method: "POST", headers: {"Content-Type": "application/json"}, body: '{"parameters": {"dates":"d_last_month"}}' } )
```

{% endcode %}

That is all for a main features introduction. All details can be provided on demand. Other features and uses cases will be described in a while.


---

# 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://docs.gurunetwork.ai/framework/warehouse/getting-started.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.
