# 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)
