I’m stuck on two things and wondering if anyone has ideas
1. **Target Hit Verification**: How can I check if a price crossed a specific threshold during a past time period? (e.g., did ETH hit $3000 between timestamp A and timestamp B?)
2. **Price at Timestamp**: What’s the best way to get price data for a specific past timestamp?
I’ve looked at Pyth Benchmarks API and storing price feeds on-chain, but curious if there are better approaches or if anyone has solved similar problems?
Unfortunately I don’t think there’s any easy way to check this in a verifiable way as in it’s easy to proof it hit the threshold but it’s difficult to proof it did not without going through all prices. You can do it in a way that you allocate a time period for participants to proof whether the price hit $3000 or above by just posting a single price that is above that threshold (that proofs “yes it was hit”) but then after the time period closes and there’s no proof you can conclude there wasn’t anything. Of course, a bit of incentive is needed here.
Benchmarks is the way to go here. What about it is not working well for your need?