Interest Protocol Liquidity

Fetch liquidity events for versions 0 to 126000.

curl -s --location --request GET \
 "https://movement.app.pangea.foundation/v1/api/interest/v1/liquidity?chains=MOVEMENT&from_block=0&to_block=126000" \
 --header "Accept: application/jsonstream" \
 --header "Accept-Encoding: gzip" --compressed \
 --header "Authorization: Basic $PANGEA_AUTH" | jq

Response

{
  ...
  {
    "block_number": 109087,
    "transaction_hash": "0xd373e17359dadb88b5e64d4e67adeb577a1ddd9c1bb57becdf6b426f78a38af0",
    "log_index": 4,
    "account": "0x13418bb00810eca160f77aa03e134d6d62b0859653f9236ccc6293acf1a6513d",
    "pool_address": "0xce6b5a7d8d2c2023e2e11e06d9a1d0dcea2949262b2d25f4da0d17ed529aa43f",
    "token0_address": "0x423421e3cd03a806711d84d37cd354f3bafd081a6d91fcba7ef0bff403f59e83",
    "token0_decimals": 9,
    "token0_name": "Tio Batalha",
    "token0_symbol": "Batalha",
    "token1_address": "0x5f7f59e38a96dfe79830f53fe49a19e770f70a13ff30ce598a49e8f0a2b46861",
    "token1_decimals": 8,
    "token1_name": "🔥",
    "token1_symbol": "🔥",
    "event_type": "AddLiquidity",
    "amount0_in": 30831958582,
    "amount1_in": 10000000000,
    "amount0_out": 0,
    "amount1_out": 0,
    "fee_in": null,
    "slot_balance0": null,
    "slot_balance1": null,
    "bid_liquidity": null,
    "last_slot_timestamp": null
  }
}

Query parameters

movement.app.pangea.foundation/v1/api/interest/v1/liquidity

  • chains: Filters the data by chain.
  • from_block: Filters the data by a starting version. As Move chains use a per-transaction versioned database, we use version interchangably with block_number and omit blocks altogether.
  • to_block: Filters the data by an ending version. As Move chains use a per-transaction versioned database, we use version interchangably with block_number and omit blocks altogether.
  • pool_address__in: Filters the data by a list of pool_address.
  • token0_address__in: Filters the data by a list of token0_address.
  • token1_address__in: Filters the data by a list of token1_address.
  • tokens_address__in: Filters the data by a list of both token0_address and token1_address.