Interest Protocol Swaps
Fetch swaps for versions 0
to 126000
.
curl -s --location --request GET \
"https://movement.app.pangea.foundation/v1/api/interest/v1/swaps?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": 108230,
"transaction_hash": "0xb66e40b1451ff81b5912d0e7dc85724aff202253cfc1defc5c2154384f4009f0",
"log_index": 4,
"account_address": "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": "🔥",
"side": "Sell",
"amount0": 1,
"amount1": 3.23578683,
"fee_in": 0.003,
"slot_balance0": 0,
"slot_balance1": 0,
"bid_liquidity": 0,
"last_slot_timestamp": 0,
"execution_price": 3.23578683,
"settlement_price": 3.245523400200602
}
}
Query parameters
movement.app.pangea.foundation/v1/api/interest/v1/swaps
chains
: Filters the data bychain
.from_block
: Filters the data by a startingversion
. As Move chains use a per-transaction versioned database, we useversion
interchangably withblock_number
and omit blocks altogether.to_block
: Filters the data by an endingversion
. As Move chains use a per-transaction versioned database, we useversion
interchangably withblock_number
and omit blocks altogether.pool_address__in
: Filters the data by a list ofpool_address
.token0_address__in
: Filters the data by a list oftoken0_address
.token1_address__in
: Filters the data by a list oftoken1_address
.tokens_address__in
: Filters the data by a list of bothtoken0_address
andtoken1_address
.