GET: /stoken
STokenRequest
The request to the sToken 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 |
bytes |
| List of token addresses to filter on, e.g.: ["0x...", ,"0x..."] |
STokenResponse
The sToken API returns an overall picture of sTokens matching the filter.
Type | Key | Description |
bool |
| If set false, indicates an error returning data. |
STokenResponseData |
| The result matching the requested filter. |
STokenResponseData
Type | Key | Description |
string |
| Strike speed per block |
string |
| Daily strike distribution amount |
uint32 |
| Borrower count |
uint32 |
| Supplier count |
STokenRequest |
| The request parameters are echoed in the response |
MarketVolumeData |
| Market volume data |
Market |
| The list of market(see Market below) matching the requested filter. |
Market
This includes a list of sTokens contextualized to the full market.
Type | Key | Description |
bytes |
| The public Ethereum address of the sToken |
string |
| The symbol of the stoken |
string |
| The name of the stoken |
bytes |
| The address of the underlying token |
string |
| The name of the underlying token |
string |
| The symbol of the underlying token |
string |
| Strike speed per block |
string |
| Borrower daily strike |
string |
| Supplier daily strike |
string |
| Strike borrow index |
string |
| Strike supply index |
string |
| The floating borrow interest rate |
string |
| The floating supply interest rate |
string |
| The sToken / 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 sToken |
string |
| The amount of underlying tokens borrowed from the sToken handled by decimals |
string |
| The USD amount of underlying tokens borrowed from the sToken |
string |
| The number of sTokens in existence |
string |
| The number of sTokens in existence handled by decimals |
string |
| The USD amount of sTokens in existence |
string |
| The current liquidity of the sToken |
string |
| Total bookings |
string |
| Reserve factor |
string |
| The amount of the value of the underlying token that will count as collateral. eg. cEth 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 strk apy for borrowing this token |
string |
| The floating strk apy for supplying this token |
string |
| liquidity amount |
string |
| sToken price |
string |
| Total distributed strk amount |
string |
| Total distributed strk 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 sToken |
MarketVolumeData |
| Market volume data |
MarketVolumeData
Type | Key | Description |
uuid |
| Unique id of MarketVolumeData |
bytes |
| The public Ethereum address of the sToken |
string |
| Total supply USD |
string |
| 24hr change of total supply USD |
string |
| 24hr change of total borrow USD |
uint32 |
| Last calculated block number |
datetime |
| Created timestamp |
datetime |
| Updated timestamp |
Last updated