GET: /otoken
The oToken service retrieves information about an oToken. You can use this API to find out the values of interest rates.
OTokenRequest
The request to the oToken API can specify a number filters, such as which tokens to retrieve information about or moment in time. The following shows an example set of request parameters in JSON:
Type | Key | Description |
---|---|---|
repeated string |
| List of token addresses to filter on, e.g.: |
OTokenResponse
The oToken API returns an overall picture of oTokens matching the filter.
Type | Key | Description |
---|---|---|
bool |
| If set false, indicates an error returning data |
Struct |
| The result matching the requested filter. See OTokenResponseData |
OTokenResponseData
Type | Key | Description |
---|---|---|
string |
| XCN speed per block |
string |
| Daily xcn distribution amount |
uint32 |
| Borrower count |
uint32 |
| Supplier count |
string |
| Total reserves in treasury in USD |
Struct |
| The request parameters are echoed in the response. See OTokenRequest |
Struct |
| Market volume data. See MarketVolumeData |
repeated Market |
| The list of Market (see Market) matching the requested filter |
Market
This includes a list of oTokens contextualized to the full market.
Type | Key | Description |
---|---|---|
bytes |
| The public Ethereum address of the oToken |
string |
| The symbol of the oToken |
string |
| The name of the oToken |
bytes |
| The address of the underlying token |
string |
| The name of the underlying token |
string |
| The symbol of the underlying token |
string |
| XCN speed per block |
string |
| Borrower daily XCN |
string |
| Supplier daily XCN |
string |
| XCN borrow index |
string |
| XCN supply index |
string |
| The floating borrow interest rate |
string |
| The floating supply interest rate |
string |
| The oToken / underlying exchange rate. This rate increases over time as supply interest accrues. |
string |
| The price of the underlying token in ETH |
string |
| The amount of underlying tokens borrowed from the oToken |
string |
| The amount of underlying tokens borrowed from the oToken handled by decimals |
string |
| The USD amount of underlying tokens borrowed from the oToken |
string |
| The number of oTokens in existence |
string |
| The number of oTokens in existence handled by decimals |
string |
| The USD amount of oTokens in existence |
string |
| The current liquidity of the oToken |
string |
| Total reserves |
string |
| Reserve factor |
string |
| The amount of the value of the underlying token that will count as collateral. eg. oEth with collataral factor 0.75 means 1 ETH of supply allows 0.75 ETH of borrowing |
string |
| Borrow APY |
string |
| Supply APY |
string |
| The floating XCN APY for borrowing this token |
string |
| The floating XCN APY for supplying this token |
string |
| Liquidity amount |
string |
| oToken price |
string |
| Total distributed XCN amount |
string |
| Total distributed XCN amount handled by decimals |
uint32 |
| Last block number to update market data |
uint32 |
| The number of accounts with outstanding borrows |
uint32 |
| The number of accounts holding this oToken |
bool |
| Is mint guardian paused |
string |
| XCN supply speeds |
string |
| XCN borrow speeds |
uint32 |
| Decimal places for underlying token |
string |
| Exchange rate handled by decimals |
string |
| Maximum possible supply |
string |
| Maximum possible borrow |
MarketVolumeData |
| Market volume data |
MarketVolumeData
Type | Key | Description |
---|---|---|
string |
| Unique id of MarketVolumeData |
string |
| The public Ethereum address of the oToken |
string |
| Total supply USD |
string |
| Total borrows USD |
string |
| 24hr change of total supply USD |
string |
| 24hr change of total borrow USD |
uint32 |
| Last calculated block number |
Timestamp |
| Created timestamp |
Timestamp |
| Updated timestamp |
Last updated