Lookup lending market by asset
markets.lend.get_by_asset(LendGetByAssetParams**kwargs) -> LendGetByAssetResponse
GET/api/v1/markets/lend/lookup
Lookup lending market by asset
Lookup lending market by asset
from neptune_api_v2 import NeptuneAPIV2
client = NeptuneAPIV2()
response = client.markets.lend.get_by_asset(
asset_id="token;-K-//-//3-",
)
print(response.data){
"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.21150951",
"apy": "0.23554172",
"extra": {
"text": {
"apy": "23.55%",
"apr": "21.15%"
}
}
},
"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"
}
}
}
}
}
},
"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.21150951",
"apy": "0.23554172",
"extra": {
"text": {
"apy": "23.55%",
"apr": "21.15%"
}
}
},
"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"
}
}
}
}
}
},
"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"
}