DeFiCh / DeFiCh/ain

Include blockheight filter in `getfixedintervalprice` and `listfixedintervalprice`

Open
#1,028 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.