Strike Docs
Search…
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:
1
{
2
"addresses": [] // returns all tokens if empty or not included
3
}
Copied!
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.
1
{
2
status: true,
3
data: {
4
strikeRate: "118900000000000000",
5
dailyStrike: "1369728000000000000000",
6
markets: [
7
{
8
address: "0x405bfbd29cfad8cd5513de848064e96fd3db890b",
9
symbol: "sETH",
10
name: "sETH",
11
underlyingAddress: null,
12
underlyingName: "ETH",
13
underlyingSymbol: "ETH",
14
strikeSpeeds: "0",
15
borrowerDailyStrike: "0",
16
supplierDailyStrike: "0",
17
strikeBorrowIndex: "1000000000000000000000000000000000000",
18
strikeSupplyIndex: "1000000000000000000000000000000000000",
19
borrowRatePerBlock: "23782343987",
20
supplyRatePerBlock: "0",
21
exchangeRate: "200000000000000000000000000",
22
underlyingPrice: "1190005700000000000000",
23
totalBorrows: "0",
24
totalBorrows2: "0",
25
totalBorrowsUsd: "0",
26
totalSupply: "0",
27
totalSupply2: "0",
28
totalSupplyUsd: "0",
29
cash: "0",
30
totalReserves: "0",
31
reserveFactor: "0",
32
collateralFactor: "500000000000000000",
33
borrowApy: "5.112350694414863249",
34
supplyApy: "0",
35
borrowStrikeApy: "0",
36
supplyStrikeApy: "0",
37
liquidity: "0",
38
tokenPrice: "1190.0057",
39
totalDistributed: "0",
40
totalDistributed2: "0",
41
lastCalculatedBlockNumber: 9605249,
42
borrowerCount: 0,
43
supplierCount: 0,
44
marketVolumeLog: {
45
id: "8f0935bb-048b-4420-a37b-74890b8a8483",
46
address: "0x405bfbd29cfad8cd5513de848064e96fd3db890b",
47
totalSupplyUsd: "0",
48
totalBorrowsUsd: "0",
49
totalSupplyUsd24h: "0",
50
totalBorrowsUsd24h: "0",
51
blockNumber: 9605193,
52
createdAt: "2021-02-05T12:00:00.000Z",
53
updatedAt: "2021-02-05T12:00:00.000Z"
54
}
55
}
56
],
57
request: {
58
addresses: [
59
"0x405bfbd29cfad8cd5513de848064e96fd3db890b"
60
]
61
},
62
marketVolumeLog: {
63
id: "b29cd0f2-4c24-4fe4-b03b-92d422ba0f62",
64
address: null,
65
totalSupplyUsd: "0",
66
totalBorrowsUsd: "0",
67
totalSupplyUsd24h: "0",
68
totalBorrowsUsd24h: "0",
69
blockNumber: 9605193,
70
createdAt: "2021-02-05T12:00:00.000Z",
71
updatedAt: "2021-02-05T12:00:00.000Z"
72
},
73
borrowerCount: 0,
74
supplierCount: 0
75
}
76
}
Copied!
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
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
Copy link