API
Last updated
Last updated
For a more comprehensive protocol support and enhanced position and market information, we recommend using the Lending SDK.
https://github.com/dinngo/compound-kit-api
https://compound-kit-api.protocolink.com
https://compound-kit-api.protocolink.com/docs
/v1/markets/{chainId}//{marketId}
Example: 137
137
Example: usdc
usdc
Example: 0x0FBeABcaFCf817d47E10a7bCFC15ba194dbD4EEF
0x0FBeABcaFCf817d47E10a7bCFC15ba194dbD4EEF
No body
/v1/markets/{chainId}//{marketId}/leverage
Example: 137
137
Example: usdc
usdc
0x0FBeABcaFCf817d47E10a7bCFC15ba194dbD4EEF
1
100
/v1/markets/{chainId}//{marketId}/deleverage
Example: 137
137
Example: usdc
usdc
0x0FBeABcaFCf817d47E10a7bCFC15ba194dbD4EEF
1000
100
No body
/v1/markets/{chainId}//{marketId}/collateral-swap
Example: 137
137
Example: usdc
usdc
0x0FBeABcaFCf817d47E10a7bCFC15ba194dbD4EEF
1
100
No body
/v1/markets/{chainId}//{marketId}/zap-supply
Example: 137
137
Example: usdc
usdc
Example: permit, approve
permit
0x0FBeABcaFCf817d47E10a7bCFC15ba194dbD4EEF
10
100
No body
/v1/markets/{chainId}//{marketId}/zap-withdraw
Example: 137
137
Example: usdc
usdc
Example: permit, approve
permit
0x0FBeABcaFCf817d47E10a7bCFC15ba194dbD4EEF
1
100
No body
/v1/markets/{chainId}//{marketId}/zap-repay
Example: 137
137
Example: usdc
usdc
Example: permit, approve
permit
0x0FBeABcaFCf817d47E10a7bCFC15ba194dbD4EEF
10
100
No body
/v1/markets/{chainId}//{marketId}/zap-borrow
Example: 137
137
Example: usdc
usdc
0x0FBeABcaFCf817d47E10a7bCFC15ba194dbD4EEF
100
100
No body