Include blockheight filter in `getfixedintervalprice` and `listfixedintervalprice`
Open
- Dominant language
- C++
- Stars
- 397
- Forks
- 129
- PR merge metrics
- No merged PRs in 30d
Description
#### What would you like to be added:
Add a optional parameter `height` to `getfixedintervalprice` & `listfixedintervalprice` be able to filter price in a specific blockheight:
`getfixedintervalprice { "fixedIntervalPriceId" : "DFI/USDC", "height" : "1234" }`
`listfixedintervalprice { "height" : "1234" }`
#### Why is this needed:
This will help external applications to build historical data & check price at specific time/blockheight.
#### Note
This change requires modification in how fixedintervalprice is stored in DB so introducing this feature will lead to a full reindex required
Contributor guide
Assessment
This issue has not been assessed yet.