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
addresses
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
status
If set false, indicates an error returning data.
STokenResponseData
data
The result matching the requested filter.
STokenResponseData
Type
Key
Description
string
strikeRate
Strike speed per block
string
dailyStrike
Daily strike distribution amount
uint32
borrowerCount
Borrower count
uint32
supplierCount
Supplier count
STokenRequest
request
The request parameters are echoed in the response
MarketVolumeData
marketVolumeLog
Market volume data
Market
markets
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
address
The public Ethereum address of the sToken
string
symbol
The symbol of the stoken
string
name
The name of the stoken
bytes
underlyingAddress
The address of the underlying token
string
underlyingName
The name of the underlying token
string
underlyingSymbol
The symbol of the underlying token
string
strikeSpeeds
Strike speed per block
string
borrowerDailyStrike
Borrower daily strike
string
supplierDailyStrike
Supplier daily strike
string
strikeBorrowIndex
Strike borrow index
string
strikeSupplyIndex
Strike supply index
string
borrowRatePerBlock
The floating borrow interest rate
string
supplyRatePerBlock
The floating supply interest rate
string
exchangeRate
The sToken / underlying exchange rate. This rate increases over time as supply interest accrues.
string
underlyingPrice
The price of the underlying token in eth
string
totalBorrows
The amount of underlying tokens borrowed from the sToken
string
totalBorrows2
The amount of underlying tokens borrowed from the sToken handled by decimals
string
totalBorrowsUsd
The USD amount of underlying tokens borrowed from the sToken
string
totalSupply
The number of sTokens in existence
string
totalSupply2
The number of sTokens in existence handled by decimals
string
totalSupplyUsd
The USD amount of sTokens in existence
string
cash
The current liquidity of the sToken
string
totalBookings
Total bookings
string
reserveFactor
Reserve factor
string
collateralFactor
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
borrowApy
Borrow apy
string
supplyApy
Supply apy
string
borrowStrikeApy
The floating strk apy for borrowing this token
string
supplyStrikeApy
The floating strk apy for supplying this token
string
liquidity
liquidity amount
string
tokenPrice
sToken price
string
totalDistributed
Total distributed strk amount
string
totalDistributed2
Total distributed strk amount handled by decimals
uint32
lastCalculatedBlockNumber
Last block number to update market data
uint32
borrowerCount
The number of accounts with outstanding borrows
uint32
supplierCount
The number of accounts holding this sToken
MarketVolumeData
marketVolumeLog
Market volume data
MarketVolumeData
Type
Key
Description
uuid
id
Unique id of MarketVolumeData
bytes
address
The public Ethereum address of the sToken
string
totalSupplyUsd
Total supply USD
string
totalSupplyUsd24h
24hr change of total supply USD
string
totalBorrowsUsd24h
24hr change of total borrow USD
uint32
blockNumber
Last calculated block number
datetime
createdAt
Created timestamp
datetime
updatedAt
Updated timestamp
Last updated