Get lending markets
markets.lend.list(LendListParams**kwargs) -> LendListResponse
GET/api/v1/markets/lend
Get lending markets
Get lending markets
from neptune_api_v2 import NeptuneAPIV2
client = NeptuneAPIV2()
lends = client.markets.lend.list()
print(lends.count){
"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"
}
}
},
"rate": {
"apr": "0.29995825",
"apy": "0.34980245",
"extra": {
"text": {
"apy": "34.98%",
"apr": "29.99%"
}
}
},
"state": {
"principal_sum": "425740748412504991838699",
"receipt_total_supply": "396952939907783847231686",
"redemption_ratio": "1.072521968249961422",
"extra": {
"text": {
"redemption_ratio": "1.0725",
"receipt_total_supply": "396,952.9399 nINJ",
"principal_sum": "425,740.7484 INJ"
},
"value": {
"price": "2.99835",
"principal_sum": "1276519.773002634342279563",
"extra": {
"text": {
"price": "$2.99",
"principal_sum": "$1,276,519.77"
}
}
}
}
}
}
],
"count": 1,
"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"
}
}
},
"rate": {
"apr": "0.29995825",
"apy": "0.34980245",
"extra": {
"text": {
"apy": "34.98%",
"apr": "29.99%"
}
}
},
"state": {
"principal_sum": "425740748412504991838699",
"receipt_total_supply": "396952939907783847231686",
"redemption_ratio": "1.072521968249961422",
"extra": {
"text": {
"redemption_ratio": "1.0725",
"receipt_total_supply": "396,952.9399 nINJ",
"principal_sum": "425,740.7484 INJ"
},
"value": {
"price": "2.99835",
"principal_sum": "1276519.773002634342279563",
"extra": {
"text": {
"price": "$2.99",
"principal_sum": "$1,276,519.77"
}
}
}
}
}
}
],
"count": 1,
"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"
}