🎯Collection Borrow/Repay Activity

Get Collection Borrow/Repay Activity in terms of count/amount in USD for supported protocols and collection addresses.

Get Collection Borrow/Repay Activity

GET https://api.metaquants.xyz/v1/finance/b2b-bor-rep-sum-count

Query Parameters

NameTypeDescription

activity-type*

String

[borrow, repay]

value-type*

String

[sum, count]

protocol

String

Choose from Protocols

collection-address

String

Collection contract address

limit

Number

Limit number of rows to be returned (default=100)

order

String

Order by creation time. ASC/DESC (default=ASC)

start-time

Number

Filter by creation time in UNIX format

end-time

Number

Filter by creation time in UNIX format

continuation

String

Generated string for returning paginated results


{
    "data": [
        {
            "protocol": "nftfi",
            "block_timestamp": "2020-09-28",
            "amt_in_usd": 460.3003272,
            "collection_address": "0xb7f7f6c52f2e2fdb1963eab30438024864c313f6"
        },
        {
            "protocol": "nftfi",
            "block_timestamp": "2020-09-29",
            "amt_in_usd": 0.0,
            "collection_address": "0xb7f7f6c52f2e2fdb1963eab30438024864c313f6"
        },
        ...
        ],
        "continuation": "1,2010-01-01%2000%3A00%3A00%2B00%3A00,2050-01-01%2000%3A00%3A00%2B00%3A00,1,22128"
}

Example curl request

curl --location --request GET 'https://api.metaquants.xyz/v1/finance/b2b-bor-rep-sum-count?activity-type=repay&value-type=sum' \
--header 'x-api-key: <YOUR-API-KEY>'

Example curl response


{
    "data": [
        {
            "protocol": "nftfi",
            "block_timestamp": "2020-09-28",
            "amt_in_usd": 460.3003272,
            "collection_address": "0xb7f7f6c52f2e2fdb1963eab30438024864c313f6"
        },
        {
            "protocol": "nftfi",
            "block_timestamp": "2020-09-29",
            "amt_in_usd": 0.0,
            "collection_address": "0xb7f7f6c52f2e2fdb1963eab30438024864c313f6"
        },
        ...
    ],
    "continuation": "1,2010-01-01%2000%3A00%3A00%2B00%3A00,2050-01-01%2000%3A00%3A00%2B00%3A00,1,22128"
}

Example continuation curl request

curl --location --request GET 'https://api.metaquants.xyz/v1/finance/b2b-bor-rep-sum-count?activity-type=repay&value-type=sum&continuation=1,2010-01-01%2000%3A00%3A00%2B00%3A00,2050-01-01%2000%3A00%3A00%2B00%3A00,1,22128' \
--header 'x-api-key: <YOUR-API-KEY>'

Last updated