-
Notifications
You must be signed in to change notification settings - Fork 35
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
Please add API endpoints for current and historical prices of FA1.2 and FA2 tokens #95
Comments
Hey! Thank you for the feedback! Having prices for Tezos tokens is definitely a great idea. We will consider adding current prices to TzKT. However, there are some doubts regarding historical prices, because the number of tokens is growing (there are already more than 2M tokens) and the number of blocks is growing, so storing historical prices for all tokens would be quite expensive for general-purpose indexer. |
Hi I posted my feature request first on discord but Groxan told me there is this open github discussion, so I would like to add my "idea". First regarding the mentioned doubts for historical prices, I think with my approach this can be limited? So for FA2 and FA1.2 tokens there is no endpoint to get historical price or "live" price. Knowing the contract address for youves uUSD I should be able to query with TZKT and get the current prices Now the question some might ask is "But there are more decentralised exchanges so there are different prices, how to do that?" A very good example is how coingecko does it. They have a separate object for every exchange they gather/track the data. I dont say tzkt api should track every dex. But for example the top 2-3? then you would have something like this: tickers: Then people can easily get the data and build on top of it. My example screenshot is taken from this example here. |
Do you plan o to add this feature to tzkt? @Groxan |
@BearCooder definitely yes :) It just takes more time than we expected, because we have to spend a lot of time on constant protocol updates, which often contain breaking changes and backward incompatible behavior, so we have to do a lot of extra work :( |
That makes sense, fingers crossed you can spend more time on it in the next week/months! |
Please make it possible to get the current and historical prices of FA1.2 and FA2 tokens. e.g.
User holds 1000 Crunch and bought 20.02.22 at X price. And current price is XY.
So you can get individual token prices or aggregate prices over time and have price history etc.
With growing Tezos ecosystem this is a big piece thats missing in tzkt.
Thank you!
The text was updated successfully, but these errors were encountered: