-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
generate candlestick data from oracle_snapshots #19
Comments
I am applying to this issue via OnlyDust platform. My background and how it can be leveraged@moodysalem I will be glad if this task is assigned to me thanks. |
Yes you can apply on OnlyDust |
@moodysalem I as well would want to work on this issue |
I have applied through onlydust sir |
Thank you |
I'd like to take this issue. |
need to be able to query the price chart for any token pair from a view based on oracle_snapshots table
optionally it could be a postgres function as well that returns the data
need to be able to query by base_token and quote_token for a specific time interval ('1 h') and get a list of points for a candlestick chart (open, high, low, close) using only snapshot data
high and low are just whatever the high/low tick was for that period
open could just be the tick from the last interval, and close can be the twap over that interval
we do something similar here https://github.com/EkuboProtocol/oracle-extension/blob/6f6924d7dd3b1bf9e111c23e24950dd4a0c80d6c/src/price_fetcher.cairo#L201-L315
The text was updated successfully, but these errors were encountered: