GET: /market_history/graph
Last updated
Last updated
MarketHistoryGraphRequest
The market history graph API returns information about a market between two timestamps. The requestor can choose the asset and number of buckets to return within the range. For example:
Type | Key | Description |
---|---|---|
MarketHistoryGraphResponse
The market history graph API response contains the rates for both suppliers and borrowers, as well as the sequence of total supply and borrows for the given market.
Type | Key | Description |
---|---|---|
MarketHistoryGraphData
Type | Key | Description |
---|---|---|
MarketHistoryGraph
Type | Key | Description |
---|---|---|
bytes
asset
The requested asset
string
type
Graph log interval. Enum["1day", "1hr"]
uint32
offset
Offset of pagination. Default: 0
uint32
limit
Limit of pagination. Max: 365
bool
status
If set false, indicates an error returning data.
MarketHistoryGraphData
data
Market history graph data.
uint32
limit
Limit of pagination
uint32
total
Total count of data
array
result
Array of MarketHistoryGraph
uuid
id
History id
string
asset
Asset address
uint32
blockNumber
Block number of graph history
uint32
blockTimestamp
Unix block timestamp
string
borrowApy
Borrow apy
string
supplyApy
Supply apy
string
borrowBelugasApy
Borrow BUL apy
string
supplyBelugasApy
Supply BUL apy
string
exchangeRate
Exchange rate
string
priceUSD
USD price of asset
string
totalBorrow
Total borrow amount
string
totalSupply
Total supply amount
datetime
createdAt
Created timestamp
datetime
updatedAt
Updated timestamp