New query type docs for TWAP, numeric API values, and lending risk data
Jul 15, 2022
- TWAP query type documentation added — Added docs for the new `TWAP` query type, making it easier to request time-weighted average prices with example query data and query ID guidance.
- Numeric API responses are now documented — Introduced documentation for `NumericApiResponse`, a query type for returning a single numeric value from an API response, including updated examples and clearer usage guidance.
- LendingPairToxicity query docs added — Published documentation for the new `LendingPairToxicity` query type, including its parameters, response format, query ID generation, and suggested data sources.
New Features
- Added documentation for `TWAP`, a new query type for time-weighted average prices, with ETH/USD examples and query ID guidance.
- Added `NumericApiResponse` documentation for numeric-only API results, including a simplified response format and updated examples.
- Added `LendingPairToxicity` documentation covering supported inputs, response format, and query ID details.
Documentation
- Clarified how to encode query data when a query has no parameters, including an example using empty bytes.
- Updated API examples and usage notes to better explain `parseStr`, remove an outdated Weather example, and clarify that some query types are intended for testing or small personal projects.
- Fixed broken README links and added a link to the next steps for setting up a new query type in client software.
- Refined the TWAP and LendingPairToxicity reference pages with updated wording, formula links, and cleaner example formatting.