GET: /market_history/graph
The market history service retrieves historical information about a market. You can use this API to find out the values of interest rates at a certain point in time. Its especially useful for making charts and graphs of the time-series values.
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 |
---|---|---|
bytes |
| The requested asset |
string |
| Graph log interval. |
uint32 |
| Offset of pagination. |
uint32 |
| Limit of pagination. |
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 |
---|---|---|
bool |
| If set |
Struct |
| Market history graph data. See MarketHistoryGraphData |
MarketHistoryGraphData
Type | Key | Description |
---|---|---|
uint32 |
| Limit of pagination |
uint32 |
| Total count of data |
repeated MarketHistoryGraph |
| The list of |
MarketHistoryGraph
Type | Key | Description |
---|---|---|
string |
| Unique id of History record |
string |
| Asset address |
uint32 |
| Block number of graph history |
uint32 |
| Unix block timestamp |
string |
| Borrow APY |
string |
| Supply APY |
string |
| Borrow XCN APY |
string |
| Supply XCN APY |
string |
| Exchange rate |
string |
| USD price of asset |
string |
| Total borrow amount |
string |
| Total supply amount |
Timestamp |
| Created timestamp |
Timestamp |
| Updated timestamp |
Last updated