# Pair Transaction Candle API

Gets actual traded candle data from the liquidity pool.&#x20;

It can be inquired by pairAddress and consists of hour-by-hour data.

```
GET http://3.36.127.229:9090/api/candle/{pair_address}
```

* **Example**

```
GET api/candle/c3ac80faadc3aeb58257af68ab1d795d985110080ba564c8a1d84b2a8f20c
```

* **Response**

```
[
    {
        "id": 2,
        "pair_address": "c3ac80faadc3aeb58257af68ab1d795d985110080ba564c8a1d84b2a
        "accumulated_reward_per_unit": "764755307535391",
        "address_a": "ad9d4065fa5e0cd7ba8ba89cf62141dea01566bb66c7bb195b5cbefdf6c
        "address_b": "ef49193e116b962ebe138ae61c2e4563a115460b47ba46f111bf58002a10
        "rate_a_to_b": "714855152830651790",
        "rate_b_to_a": "1365353336620206774",
        "reserve_a": "130000000000000000000",
        "reserve_b": "93927808446153846152",
        "volume": "5000000000000000000",
        "total_liquidity": "110453610171872608256",
        "created_at": "2025-01-11T07:00:00"
    },{
        "id": 3,
        "pair_address": "c3ac80faadc3aeb58257af68ab1d795d985110080ba564c8a1d84b2a
        "accumulated_reward_per_unit": "764755307535391",
        "address_a": "ad9d4065fa5e0cd7ba8ba89cf62141dea01566bb66c7bb195b5cbefdf6c
        "address_b": "ef49193e116b962ebe138ae61c2e4563a115460b47ba46f111bf58002a10
        "rate_a_to_b": "714855152830651790",
        "rate_b_to_a": "1365353336620206774",
        "reserve_a": "130000000000000000000",
        "reserve_b": "93927808446153846152",
        "volume": "5000000000000000000",
        "total_liquidity": "110453610171872608256",
        "created_at": "2025-01-11T07:00:00"
    }
]
```

* rate\_a\_to\_b : The number of b tokens that can be exchanged for one a token.
* volume : based on one-hour trading volume (tokenA)


---

# 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://saseul-gold.gitbook.io/saseul-gold-docs/backend-api/pair-transaction-candle-api.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.
