/compound

Scopes

Here you can find all the scopes available in this particular namespace.

WS
info

wss://api-v4.zerion.io/compound
Example request [ "get", { "scope": ["info"], "payload": { "body parameter": "value" } } ]
Request
Response
Request
Body Parameters
address
optional
str
Default: -
currency
optional
enum
PriceCurrency: eth, btc, usd, eur, krw, rub, gbp, aud, cad, inr, jpy, nzd, try, zar, cny, chf. Default: usd
Response
200: OK
Successful result.
[
"received compound info",
{
"meta": {
"status": "ok",
"request parameter1": "value1",
"request parameter2": "value2"
},
"payload": {
"info": CompoundInfo
}
}
]

WS
assets

wss://api-v4.zerion.io/compound
Example request [ "get", { "scope": ["assets"], "payload": { "body parameter": "value" } } ]
Request
Response
Request
Body Parameters
currency
optional
enum
PriceCurrency: eth, btc, usd, eur, krw, rub, gbp, aud, cad, inr, jpy, nzd, try, zar, cny, chf. Default: usd
Response
200: OK
Successful result.
[
"received compound assets",
{
"meta": {
"status": "ok",
"request parameter1": "value1",
"request parameter2": "value2"
},
"payload": {
"assets": List[CompoundAsset]
}
}
]

WS
actions

wss://api-v4.zerion.io/compound
Example request [ "get", { "scope": ["actions"], "payload": { "body parameter": "value" } } ]
Request
Response
Request
Body Parameters
address
optional
str
Default: -
currency
optional
enum
PriceCurrency: eth, btc, usd, eur, krw, rub, gbp, aud, cad, inr, jpy, nzd, try, zar, cny, chf. Default: usd
Response
200: OK
Successful result.
[
"received compound actions",
{
"meta": {
"status": "ok",
"request parameter1": "value1",
"request parameter2": "value2"
},
"payload": {
"actions": List[CompoundAction]
}
}
]

WS
deposits

wss://api-v4.zerion.io/compound
Example request [ "get", { "scope": ["deposits"], "payload": { "body parameter": "value" } } ]
Request
Response
Request
Body Parameters
address
optional
str
Default: -
currency
optional
enum
PriceCurrency: eth, btc, usd, eur, krw, rub, gbp, aud, cad, inr, jpy, nzd, try, zar, cny, chf. Default: usd
Response
200: OK
Successful result.
[
"received compound deposits",
{
"meta": {
"status": "ok",
"request parameter1": "value1",
"request parameter2": "value2"
},
"payload": {
"deposits": List[CompoundDeposit]
}
}
]

WS
loans

wss://api-v4.zerion.io/compound
Example request [ "get", { "scope": ["loans"], "payload": { "body parameter": "value" } } ]
Request
Response
Request
Body Parameters
address
optional
str
Default: -
currency
optional
enum
PriceCurrency: eth, btc, usd, eur, krw, rub, gbp, aud, cad, inr, jpy, nzd, try, zar, cny, chf. Default: usd
Response
200: OK
Successful result.
[
"received compound loans",
{
"meta": {
"status": "ok",
"request parameter1": "value1",
"request parameter2": "value2"
},
"payload": {
"loans": List[CompoundLoan]
}
}
]