Lookup user lending distribution by asset
GET/api/v1/users/{address}/markets/lend/lookup
Lookup user lending distribution by asset
Query Parameters
Lookup user lending distribution by asset
curl https://api-v2.nept.finance/api/v1/users/$ADDRESS/markets/lend/lookup{
"data": {
"asset_info": {
"asset": {
"id": "native;inj",
"group": "native",
"group_key": "inj"
},
"metadata": {
"name": "Injective",
"symbol": "INJ",
"symbol_denom": "inj",
"decimals_denom": 18,
"decimals_display": 4
},
"classification": {
"kind": "regular",
"neptune_receipt_asset": {
"id": "token;inj1rmzufd7h09sqfrre5dtvu5d09ta7c0t4jzkr2f",
"group": "token",
"group_key": "inj1rmzufd7h09sqfrre5dtvu5d09ta7c0t4jzkr2f"
}
}
},
"market_rate": {
"apr": "0.25122284",
"apy": "0.28559653",
"extra": {
"text": {
"apy": "28.55%",
"apr": "25.12%"
}
}
},
"receipt_amounts": {
"held": "34390327811707579753",
"collateralized": "905248963117284075569",
"total": "939639290928991655322",
"extra": {
"text": {
"total": "939.6392 nINJ",
"held": "34.3903 nINJ",
"collateralized": "905.2489 nINJ"
},
"value": {
"held": "110.889355961626261527",
"collateralized": "2918.915895615050113165",
"price": "3.224434398205298254",
"total": "3029.805251576676374692",
"extra": {
"text": {
"price": "$3.22",
"collateralized": "$2,918.91",
"held": "$110.88",
"total": "$3,029.80"
}
}
}
}
},
"origin_equivalent": {
"held": "36884382073374002120",
"collateralized": "970899399678786249629",
"total": "1007783781752160251749",
"extra": {
"text": {
"total": "1,007.7837 INJ",
"collateralized": "970.8993 INJ",
"held": "36.8843 INJ"
}
}
}
},
"error": null,
"status": 200,
"status_text": "200 OK"
}{
"data": null,
"error": {
"kind": "internal",
"scope": "server",
"message": "An unexpected error occurred"
},
"status": 500,
"status_text": "500 Internal Server Error"
}Returns Examples
{
"data": {
"asset_info": {
"asset": {
"id": "native;inj",
"group": "native",
"group_key": "inj"
},
"metadata": {
"name": "Injective",
"symbol": "INJ",
"symbol_denom": "inj",
"decimals_denom": 18,
"decimals_display": 4
},
"classification": {
"kind": "regular",
"neptune_receipt_asset": {
"id": "token;inj1rmzufd7h09sqfrre5dtvu5d09ta7c0t4jzkr2f",
"group": "token",
"group_key": "inj1rmzufd7h09sqfrre5dtvu5d09ta7c0t4jzkr2f"
}
}
},
"market_rate": {
"apr": "0.25122284",
"apy": "0.28559653",
"extra": {
"text": {
"apy": "28.55%",
"apr": "25.12%"
}
}
},
"receipt_amounts": {
"held": "34390327811707579753",
"collateralized": "905248963117284075569",
"total": "939639290928991655322",
"extra": {
"text": {
"total": "939.6392 nINJ",
"held": "34.3903 nINJ",
"collateralized": "905.2489 nINJ"
},
"value": {
"held": "110.889355961626261527",
"collateralized": "2918.915895615050113165",
"price": "3.224434398205298254",
"total": "3029.805251576676374692",
"extra": {
"text": {
"price": "$3.22",
"collateralized": "$2,918.91",
"held": "$110.88",
"total": "$3,029.80"
}
}
}
}
},
"origin_equivalent": {
"held": "36884382073374002120",
"collateralized": "970899399678786249629",
"total": "1007783781752160251749",
"extra": {
"text": {
"total": "1,007.7837 INJ",
"collateralized": "970.8993 INJ",
"held": "36.8843 INJ"
}
}
}
},
"error": null,
"status": 200,
"status_text": "200 OK"
}{
"data": null,
"error": {
"kind": "internal",
"scope": "server",
"message": "An unexpected error occurred"
},
"status": 500,
"status_text": "500 Internal Server Error"
}