Here's how to get historic LEO prices

avatar

image.png
Image: Screenshot https://leodex.io/market/LEO

The screenshot above, or a similar variant from HiveEngine or TribalDex, is probably well known to all of us. But it typically covers at most the last 3 months.

The API behind the above screenshot is https://accounts.hive-engine.com/marketHistory?symbol=LEO, and gives a json list of entries like

{
"_id":"6053ed925ea01a2674c8d8fd",
"timestamp":1616112000,
"symbol":"LEO",
"volumeSteem":"5262.48599387",
"volumeToken":"1939.527",
"lowestPrice":"2.60000000",
"highestPrice":"2.78699900",
"openPrice":"2.74896998",
"closePrice":"2.72498791"
},

That's pretty cool, and easily usable with a bit of scripting! And the best is, it goes back to around April 2020, one value per day.

The timestamp format may seem a bit cryptic, but is just the Unix timestamp format in seconds since Jan 1st 1970, and can be converted into a more readable format in basically every scripting environment.

As an example, here is the LEO close prices per day since mid 2020 from the above API endpoint:

image.png

Yours


Join me on CryptoBrewMaster

Posted Using LeoFinance Beta



0
0
0.000
2 comments
avatar

Congratulations @minus-pi! You have completed the following achievement on the Hive blockchain and have been rewarded with new badge(s) :

You distributed more than 200 upvotes.
Your next target is to reach 300 upvotes.

You can view your badges on your board and compare yourself to others in the Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

0
0
0.000