Saseul Gold Docs
  • Saseul Gold Docs
  • Network CLI
    • Using Saseulgold Network CLI
    • Wallet Interface
      • Representative Wallet Settings
      • Check your wallet balance
      • Remittance
    • Dex Interface
      • Get Token Detail
      • Mint Token
      • Transfer Token
      • Swap
      • ProvideLiquidity
    • Swap Process
      • Example
  • Dex API
    • Using Dex API
    • Token Info API
    • Token Mint API
    • Token Pair Info API
    • Provide Liquidity API
    • Faucet API
    • Swap
    • Liquidity Withdraw
    • Balance Of
    • Transfer
  • Backend API
    • Using Backend API
    • Token Detail API
    • Token List API
    • Pair List API
    • Pair Detail API
    • Pair Transaction Candle API
    • Block List API
Powered by GitBook
On this page
  1. Backend API

Pair Transaction Candle API

Gets actual traded candle data from the liquidity pool.

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)

PreviousPair Detail APINextBlock List API

Last updated 3 months ago