you can do this -
https://api.kava.io/hard/interest-rate?height=<height number>
Is there a way to automatically extract thousands of block numbers at the same time?
That would be above my pay grade 😜 But what are you exactly looking to do? I can ask the dev team for tips.
I did create a Google sheets script in the past that cycled through different block heights and pull the data from the API. Which I then copied into Excel and extracted the required data. How far back ate you trying to go. Querying the api from Google sheets was slow and times out so if going back a long way might need to be every 1000 blocks or so to keep the data manageable..
Does the script need to work with consequential block? Or can I extract information from (for example) block 1, 3001, 6001, 9001 and so on for other 1000 blocks?
I enter a start block height then the interval between blocks, so could be block 54500 then every 100 blocks, or 72085 then every 123 blocks whatever is needed. Partly depends on which data range is wanted If you give me an idea I will see if I can tweak it and run off some data
It could be block 1000, 2000, 3000, 4000, etc
That sounds really great! Can you share it or is it personal?
I'm not sure, would need tweaking a little.
Were you after the supply APY or supply reward APY Cameron's link is for the supply apy and not the reward APY
I don't get to hear anything mys of in advance
Ok will take a look. Any idea how far back you are looking to go. Not sure if I can go back prior to kava-9 launch
No sense going before kava 9...are there any guides to learn how to create those scripts by myself?
If I can get it working I can share it si you can see how it works, which can be tweaked for different API queries
It sounds really good 👍
Here's a link to the Supply and Borrow APY's from 19th Jan through to 24th March that you asked about The graph didn't import very well, so if you want the graph for a particular asset let me know and can post a better image https://docs.google.com/spreadsheets/d/1sexKjoycuhKJkBSbTuHPTcWSVIYeF1h5sLUkVOhdwP4/edit?usp=sharing
Wow, this is exactly what I was looking for! I don't care about the graph: I can do it by myself on excel...on Monday I'll perform some calculations based on your data extraction. Thank you very much Darren, really appreciate your hard work 👏👏👏
Обсуждают сегодня