Get P2Pool Loan Data (Borrow Data/Repay Data/Liquidate/Outstanding)
{
"data": [
{
"id": 34866,
"transaction_hash": "0x073e0e84593b6502f5ce49ad02962974787cf567301388f3b592866d48875bc3",
"block_timestamp": "2023-05-28 15:48:59+00:00",
"to_address": "0xf7b18e107eb36797f4ce36de756630b9c30969ad",
"erc20_address": "0x466a756E9A7401B5e2444a3fCB3c2C12FBEa0a54",
"erc20_name": "pUSD",
"amt_taken": 2027.0125216203837,
"loan_id": null,
"token_id": "4463",
"collection_address": "0x059edd72cd353df5106d2b9cc5ab83a52287ac3a",
"protocol": "jpegd",
"amt_in_usd": 2027.0125216203837,
"block_number": 17358508
},
{
"id": 34858,
"transaction_hash": "0x04da69dde7ec426bbf916fccb9da92fbd749bd9f7d7204f219cb5f9f7917af3e",
"block_timestamp": "2023-05-27 06:49:11+00:00",
"to_address": "0x774bb9306df1cd921eb842b1388c78f75e6ef79f",
"erc20_address": "0x836A808d4828586A69364065A1e064609F5078c7",
"erc20_name": "wETH",
"amt_taken": 1.14628820961,
"loan_id": null,
"token_id": "8345",
"collection_address": "0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d",
"protocol": "jpegd",
"amt_in_usd": 2100.352942145259,
"block_number": 17348715
},
],
"continuation": "1,2022-04-26%2022%3A23%3A06%2B00%3A00,2023-05-28%2015%3A48%3A59%2B00%3A00"
}
curl --location --request GET 'https://api.metaquants.xyz/v1/finance/peer-to-pool?type=borrow&protocol=jpegd&limit=100&order=DESC' \
--header 'x-api-key: <YOUR-API-KEY>'
{
"data": [
{
"id": 34866,
"transaction_hash": "0x073e0e84593b6502f5ce49ad02962974787cf567301388f3b592866d48875bc3",
"block_timestamp": "2023-05-28 15:48:59+00:00",
"to_address": "0xf7b18e107eb36797f4ce36de756630b9c30969ad",
"erc20_address": "0x466a756E9A7401B5e2444a3fCB3c2C12FBEa0a54",
"erc20_name": "pUSD",
"amt_taken": 2027.0125216203837,
"loan_id": null,
"token_id": "4463",
"collection_address": "0x059edd72cd353df5106d2b9cc5ab83a52287ac3a",
"protocol": "jpegd",
"amt_in_usd": 2027.0125216203837,
"block_number": 17358508
},
{
"id": 34858,
"transaction_hash": "0x04da69dde7ec426bbf916fccb9da92fbd749bd9f7d7204f219cb5f9f7917af3e",
"block_timestamp": "2023-05-27 06:49:11+00:00",
"to_address": "0x774bb9306df1cd921eb842b1388c78f75e6ef79f",
"erc20_address": "0x836A808d4828586A69364065A1e064609F5078c7",
"erc20_name": "wETH",
"amt_taken": 1.14628820961,
"loan_id": null,
"token_id": "8345",
"collection_address": "0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d",
"protocol": "jpegd",
"amt_in_usd": 2100.352942145259,
"block_number": 17348715
},
],
"continuation": "1,2022-04-26%2022%3A23%3A06%2B00%3A00,2023-05-28%2015%3A48%3A59%2B00%3A00"
]
}
Example continuation curl request
curl --location --request GET 'https://api.metaquants.xyz/v1/finance/peer-to-pool?type=borrow&protocol=jpegd&limit=100&order=DESC&continuation=1,2022-04-26%2022%3A23%3A06%2B00%3A00,2023-05-28%2015%3A48%3A59%2B00%3A00' \
--header 'x-api-key: <YOUR-API-KEY>'