Compound V2
/getpool
Get the lend and borrow APY for the given pool from the given protocol.
Query Parameters
Name
Type
Description
https://api.expand.network/lendborrow/getpool?lendborrowId=1100&asset=usdc{
"status": 200,
"msg": "success",
"data": {
"tokenAddress": "USDC",
"variableBorrowRate": "0",
"stableBorrowRate": "3.219941694305528",
"variableSupplyRate": "0",
"stableSupplyRate": "1.5063202247327823"
}
}/getpools
Get the list of supply and borrow APYs of the mentioned assets.
Query Parameters
Name
Type
Description
/getuseraccountdata
Get the repay, borrow, and withdraw amount details for the given user.
Query Parameters
Name
Type
Description
/entermarketstatus
Checks whether the user approved before depositing.
Query Parameters
Name
Type
Description
/entermarket
Compound needs the user to approve before they can start deposit.
Query Parameters
Name
Type
Description
/borrow
Trigger the withdraw transaction from the given protocol.
Request Body
Name
Type
Description
/deposit
Trigger the deposit transaction from the given protocol.
Request Body
Name
Type
Description
/liquidate
Trigger the liquidate transaction from the given protocol
Request Body
Name
Type
Description
/repay
Trigger the repay transaction from the given protocol.
Request Body
Name
Type
Description
/withdraw
Trigger the withdraw transaction from the given protocol.
Request Body
Name
Type
Description
/exitmarket
Trigger the exit market transaction for the given protocol
Request Body
Name
Type
Description
Following is the list of supported tokens :
Last updated

