Scry Protocol
  • Introduction
  • Morpheus
    • Morpheus
    • Build Your Own Oracle
    • Contract Use and Request Feeds
      • VRF
      • Crosschain Data
      • Jury - Human Defined Questions
    • Sample Templates for Contracts
    • MetaMorph: A Decentralized Oracle Tool
    • VRF Hash RanCh
    • Deployments and Oracles Available
    • Veryfi - cross-chain asset verification
  • Vain
    • Deep dive
  • Scry Token and Staking $SCRY
    • The $SCRY Token: A New Age in Oracle Collateralization and Decentralization
    • Staking
    • Distribution
  • Open Oracle Framework
    • Subscription Based Models
    • Data Feeds for Historical Tracking
    • Time Weighted Average Price using OOF
    • Feed Requests
    • Oracle Spreadsheet Management and Creation
    • Oracle Creation
    • Oracle Management
    • Front End
    • Solidity Contracts and Interface
    • OpenOracleFramework.sol
    • OOFFactory.sol
    • Deployments
  • SMART CONTRACTS
    • Smart Contracts
  • Links
    • Links
    • Deprecated
      • Purchasing a License
      • Licensing and Perks
      • Scry NFT
Powered by GitBook
On this page
  1. Open Oracle Framework

Data Feeds for Historical Tracking

OOF also supports tools for retrieving historical data, each feed has a timeslot (a value which indicates how often to update the feed and how long an update will be valid for submits) which saves the price at a given time. If the timeslot has a price that was submitted during that timeslot, then that will be returned by the contract when the user calls

historicalFeeds(uint256[] feedIDs, uint256[] timestamps)

This allows users to simply input a timestamp without needing to worry about which timeslot it relates to and can get a historical value for that feed at that time, for the history of the whole feeds lifespan. This allows for analytics as well as TWAP construction around these feeds.

PreviousSubscription Based ModelsNextTime Weighted Average Price using OOF

Last updated 2 years ago