One feature that I haven't seen available at https://hive-engine.com or https://steem-engine.com is how to view historical market price charts for a token. Ironically, while working on this post, I started seeing the candlestick plots on Steem Engine. Nonetheless, the APIs have a `history/marketHistory` endpoint that provides daily price summaries (thanks @dalz for [this info](https://peakd.com/@dalz/q9utsq)). Since I often want to visualize historical price data, I created a [**Python Jupyter notebook on Google Colab**](https://colab.research.google.com/drive/1bFfEii5QAaJEaHLtBmJVq2ctpQJi2MOw?usp=sharing). The user can choose any token symbol, and the notebook does the rest.  Since the figures are created using Plotly, they're interactive. For example, you can zoom in to reduce the y-axis to trading following the initial HIVEP volatility.  We can also plot daily volume:  Looking forward to anyone building off this code and reusing the notebook, so I released it under the open CC BY License! ## Python code Programming in Python is lot's of fun, since you can accomplish a lot with little code. For example, here's a snippet of just the code to retrieve the market history data and transform it into a dataframe (tabular data structure) and convert the dates to a more human-friendly encoding. ``` symbol = "HIVEP" url = "https://api.steem-engine.com/history/marketHistory" response = requests.get(url, params=dict(symbol=symbol)) response.raise_for_status() market_history_df = pandas.json_normalize(response.json()) market_history_df.timestamp = pandas.to_datetime(market_history_df.timestamp, unit="s") ```
author | dhimmel |
---|---|
permlink | a-python-notebook-to-visaulize-the-price-history-of-any-steem-hive-engine-token |
category | hive-133987 |
json_metadata | "{"app":"peakd/2020.04.5","format":"markdown","description":"Visualizing the STEEM/HIVEP market exchange rate from Steem Engine using Python, Jupyter, Pandas, and Plotly.","tags":["hive-engine","steem-engine","python","plotly","viz","datascience","finance","hive","pandas"],"users":["dalz"],"links":["https://hive-engine.com","https://steem-engine.com","/@dalz","/@dalz/q9utsq","https://colab.research.google.com/drive/1bFfEii5QAaJEaHLtBmJVq2ctpQJi2MOw?usp=sharing"],"image":["https://files.peakd.com/file/peakd-hive/dhimmel/LSccPCOX-image.png","https://files.peakd.com/file/peakd-hive/dhimmel/A9axU3jD-steem-hivep-history.png","https://files.peakd.com/file/peakd-hive/dhimmel/VmTe7BYe-steem-hivep-volume.png"]}" |
created | 2020-05-05 14:36:03 |
last_update | 2020-05-05 14:36:03 |
depth | 0 |
children | 15 |
last_payout | 2020-05-12 14:36:03 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 2.208 HBD |
curator_payout_value | 2.202 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 1,986 |
author_reputation | 39,788,295,023,882 |
root_title | "A Python notebook to visaulize the price history of any Steem/Hive Engine token" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 97,201,147 |
net_rshares | 8,477,593,610,245 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
hedge-x | 0 | 349,367,494,111 | 100% | ||
arcange | 0 | 45,356,803,093 | 2% | ||
raphaelle | 0 | 1,364,643,247 | 2% | ||
petrvl | 0 | 114,099,733,153 | 15% | ||
dhimmel | 0 | 3,308,329,498,868 | 100% | ||
uadigger | 0 | 43,339,487,494 | 100% | ||
tonyz | 0 | 90,313,697,090 | 56% | ||
belahejna | 0 | 19,259,457,120 | 15% | ||
blazing | 0 | 3,296,128,623 | 100% | ||
phortun | 0 | 612,410,181,189 | 100% | ||
abitcoinskeptic | 0 | 46,472,046,582 | 15% | ||
vaansteam | 0 | 14,998,863,364 | 30% | ||
holger80 | 0 | 2,023,100,514,874 | 50% | ||
beeyou | 0 | 35,036,365,965 | 100% | ||
anwars | 0 | 0 | 100% | ||
dalz | 0 | 211,647,683,594 | 100% | ||
jhimmel | 0 | 3,436,835,148 | 100% | ||
trang | 0 | 12,603,359,656 | 100% | ||
thisnewgirl | 0 | 243,389,936 | 80% | ||
brianoflondon | 0 | 610,038,961,899 | 100% | ||
dein-problem | 0 | -82,904,993 | -1% | ||
circa | 0 | 912,146,909,966 | 100% | ||
hertor | 0 | 0 | 100% | ||
kryptoformator | 0 | 6,947,214,073 | 7.5% | ||
gitplait | 0 | 13,867,246,193 | 30% | ||
lyubo19 | 0 | 0 | 11% | ||
alexpaulmx | 0 | 0 | 100% |
interesting this will be to use and analyze thanks for sharing this one :)
author | blazing |
---|---|
permlink | qa5uj8 |
category | hive-133987 |
json_metadata | {"app":"hiveblog/0.1"} |
created | 2020-05-11 09:33:09 |
last_update | 2020-05-11 09:33:09 |
depth | 1 |
children | 0 |
last_payout | 2020-05-18 09:33:09 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 74 |
author_reputation | 117,662,220,860,076 |
root_title | "A Python notebook to visaulize the price history of any Steem/Hive Engine token" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 97,308,153 |
net_rshares | 0 |
Thanks! Will play around with this. I'm still a Python amateur. Excel got me :)
author | dalz |
---|---|
permlink | q9v4x3 |
category | hive-133987 |
json_metadata | {"app":"hiveblog/0.1"} |
created | 2020-05-05 14:43:54 |
last_update | 2020-05-05 14:43:54 |
depth | 1 |
children | 0 |
last_payout | 2020-05-12 14:43:54 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.866 HBD |
curator_payout_value | 0.407 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 80 |
author_reputation | 1,956,096,362,572,438 |
root_title | "A Python notebook to visaulize the price history of any Steem/Hive Engine token" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 97,201,321 |
net_rshares | 3,809,366,930,482 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
dhimmel | 0 | 3,809,366,930,482 | 100% |
Oh I missed this post :( Certainly useful piece of code
author | dexterdev |
---|---|
permlink | qbuwkj |
category | hive-133987 |
json_metadata | {"app":"hiveblog/0.1"} |
created | 2020-06-13 08:50:45 |
last_update | 2020-06-13 08:51:09 |
depth | 1 |
children | 0 |
last_payout | 2020-06-20 08:50:45 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 1.132 HBD |
curator_payout_value | 1.132 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 57 |
author_reputation | 17,771,704,061,240 |
root_title | "A Python notebook to visaulize the price history of any Steem/Hive Engine token" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 97,936,593 |
net_rshares | 6,104,240,976,478 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
dhimmel | 0 | 6,104,240,976,478 | 100% |
For some reason this post shows up on hive.blog for me but not @peakd: - https://hive.blog/hive-133987/@dhimmel/a-python-notebook-to-visaulize-the-price-history-of-any-steem-hive-engine-token - https://peakd.com/hive-133987/@dhimmel/a-python-notebook-to-visaulize-the-price-history-of-any-steem-hive-engine-token
author | dhimmel |
---|---|
permlink | q9v58b |
category | hive-133987 |
json_metadata | {"users":["peakd"],"links":["https://hive.blog/hive-133987/@dhimmel/a-python-notebook-to-visaulize-the-price-history-of-any-steem-hive-engine-token","https://peakd.com/hive-133987/@dhimmel/a-python-notebook-to-visaulize-the-price-history-of-any-steem-hive-engine-token"],"app":"hiveblog/0.1"} |
created | 2020-05-05 14:50:36 |
last_update | 2020-05-05 14:50:36 |
depth | 1 |
children | 2 |
last_payout | 2020-05-12 14:50:36 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 313 |
author_reputation | 39,788,295,023,882 |
root_title | "A Python notebook to visaulize the price history of any Steem/Hive Engine token" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 97,201,422 |
net_rshares | 0 |
Because of the node you're using... some of them have been fixed and some haven't.
author | peakd |
---|---|
permlink | re-dhimmel-q9vecf |
category | hive-133987 |
json_metadata | {"tags":["hive-133987"],"app":"peakd/2020.05.1"} |
created | 2020-05-05 18:07:30 |
last_update | 2020-05-05 18:07:30 |
depth | 2 |
children | 1 |
last_payout | 2020-05-12 18:07:30 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.776 HBD |
curator_payout_value | 0.280 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 82 |
author_reputation | 318,691,979,607,012 |
root_title | "A Python notebook to visaulize the price history of any Steem/Hive Engine token" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 97,204,983 |
net_rshares | 3,474,929,967,607 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
dhimmel | 0 | 3,462,101,408,699 | 100% | ||
stimialiti | 0 | 12,828,558,908 | 100% |
Makes sense! Are there any posts or GitHub/GitLab issues or pull requests about the bug? I'm always interested in learning about why the blockchain / APIs malfunctioned.
author | dhimmel |
---|---|
permlink | re-peakd-q9veii |
category | hive-133987 |
json_metadata | {"tags":["hive-133987"],"app":"peakd/2020.04.5"} |
created | 2020-05-05 18:11:09 |
last_update | 2020-05-05 18:11:09 |
depth | 3 |
children | 0 |
last_payout | 2020-05-12 18:11:09 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 169 |
author_reputation | 39,788,295,023,882 |
root_title | "A Python notebook to visaulize the price history of any Steem/Hive Engine token" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 97,205,034 |
net_rshares | 0 |
Thank you very much for this tool, I was still wondering how to do it before but now I found thanks to you.
author | hertor |
---|---|
permlink | q9vap8 |
category | hive-133987 |
json_metadata | {"app":"hiveblog/0.1"} |
created | 2020-05-05 16:48:45 |
last_update | 2020-05-05 16:48:45 |
depth | 1 |
children | 0 |
last_payout | 2020-05-12 16:48:45 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 107 |
author_reputation | 65,541,492,827 |
root_title | "A Python notebook to visaulize the price history of any Steem/Hive Engine token" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 97,203,470 |
net_rshares | 0 |
Congratulations @dhimmel! You have completed the following achievement on the Hive blockchain and have been rewarded with new badge(s) : <table><tr><td><img src="https://images.hive.blog/60x70/http://hivebuzz.me/@dhimmel/upvotes.png?202005092209"></td><td>You distributed more than 16000 upvotes. Your next target is to reach 17000 upvotes.</td></tr> </table> <sub>_You can view [your badges on your board](https://hivebuzz.me/@dhimmel) and compare to others on the [Ranking](https://hivebuzz.me/ranking)_</sub> <sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub> **Do not miss the last post from @hivebuzz:** <table><tr><td><a href="/revolution/@hivebuzz/hive-revolution-mission-1"><img src="https://images.hive.blog/64x128/https://i.imgur.com/76uSoLw.png"></a></td><td><a href="/revolution/@hivebuzz/hive-revolution-mission-1">Hive Revolution - Mission 1 - Communication</a></td></tr><tr><td><a href="/revolution/@hivebuzz/hive-revolution-call-for-missions"><img src="https://images.hive.blog/64x128/https://i.imgur.com/PcoHyMJ.jpg"></a></td><td><a href="/revolution/@hivebuzz/hive-revolution-call-for-missions">Hive Revolution - Call for missions</a></td></tr></table> ###### [Vote for us as a witness](https://hivesigner.com/sign/account-witness-vote?witness=steemitboard&approve=1) to get one more badge and upvotes from us with more power!
author | hivebuzz |
---|---|
permlink | hivebuzz-notify-dhimmel-20200509t221950000z |
category | hive-133987 |
json_metadata | {"image":["http://hivebuzz.me/notify.t6.png"]} |
created | 2020-05-09 22:19:51 |
last_update | 2020-05-09 22:19:51 |
depth | 1 |
children | 0 |
last_payout | 2020-05-16 22:19:51 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 1,403 |
author_reputation | 369,452,242,276,522 |
root_title | "A Python notebook to visaulize the price history of any Steem/Hive Engine token" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 97,283,888 |
net_rshares | 0 |
Programming will always remain a mystery to me
author | lokio |
---|---|
permlink | q9vbaz |
category | hive-133987 |
json_metadata | {"app":"hiveblog/0.1"} |
created | 2020-05-05 17:01:51 |
last_update | 2020-05-05 17:01:51 |
depth | 1 |
children | 0 |
last_payout | 2020-05-12 17:01:51 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 46 |
author_reputation | 307,499,373,139 |
root_title | "A Python notebook to visaulize the price history of any Steem/Hive Engine token" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 97,203,708 |
net_rshares | 0 |
Thanks for sharing this with us. Gracias
author | mattsanthonyit |
---|---|
permlink | re-dhimmel-qadaqb |
category | hive-133987 |
json_metadata | {"tags":["hive-133987"],"app":"peakd/2020.05.3"} |
created | 2020-05-15 10:06:54 |
last_update | 2020-05-15 10:06:54 |
depth | 1 |
children | 0 |
last_payout | 2020-05-22 10:06:54 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 40 |
author_reputation | 1,648,149,400,508,362 |
root_title | "A Python notebook to visaulize the price history of any Steem/Hive Engine token" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 97,383,477 |
net_rshares | 0 |
Thanks for sharing this informative article with us
author | mattsanthonyit |
---|---|
permlink | re-dhimmel-qam48d |
category | hive-133987 |
json_metadata | {"tags":["hive-133987"],"app":"peakd/2020.05.3"} |
created | 2020-05-20 04:24:57 |
last_update | 2020-05-20 04:24:57 |
depth | 1 |
children | 0 |
last_payout | 2020-05-27 04:24:57 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 52 |
author_reputation | 1,648,149,400,508,362 |
root_title | "A Python notebook to visaulize the price history of any Steem/Hive Engine token" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 97,478,649 |
net_rshares | 0 |
Thanks for the update...💯💯💯
author | mattsanthonyit |
---|---|
permlink | re-dhimmel-qbobzx |
category | hive-133987 |
json_metadata | {"tags":["hive-133987"],"app":"peakd/2020.05.5"} |
created | 2020-06-09 19:40:48 |
last_update | 2020-06-09 19:40:48 |
depth | 1 |
children | 0 |
last_payout | 2020-06-16 19:40:48 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 27 |
author_reputation | 1,648,149,400,508,362 |
root_title | "A Python notebook to visaulize the price history of any Steem/Hive Engine token" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 97,869,170 |
net_rshares | 0 |
All Greek to me to be honest but I am sure you just created something cool and useful :) Btw hive.blog has been buggy too today... Probably all Hive front ends.
author | phortun |
---|---|
permlink | q9v76x |
category | hive-133987 |
json_metadata | {"app":"hiveblog/0.1"} |
created | 2020-05-05 15:33:00 |
last_update | 2020-05-05 15:34:54 |
depth | 1 |
children | 2 |
last_payout | 2020-05-12 15:33:00 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.854 HBD |
curator_payout_value | 0.855 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 161 |
author_reputation | 1,190,564,733,782,207 |
root_title | "A Python notebook to visaulize the price history of any Steem/Hive Engine token" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 97,202,139 |
net_rshares | 3,766,745,272,679 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
dhimmel | 0 | 3,700,591,061,632 | 100% | ||
liltammy | 0 | 64,432,162,060 | 100% | ||
libuska | 0 | 1,722,048,987 | 100% |
Yeah, now I'm not even seeing this post on hive.blog. But I can see your comment at https://hive.blog/@dhimmel/replies and reply to it.
author | dhimmel |
---|---|
permlink | q9v8g8 |
category | hive-133987 |
json_metadata | {"links":["https://hive.blog/@dhimmel/replies"],"app":"hiveblog/0.1"} |
created | 2020-05-05 16:00:09 |
last_update | 2020-05-05 16:01:00 |
depth | 2 |
children | 1 |
last_payout | 2020-05-12 16:00:09 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.104 HBD |
curator_payout_value | 0.105 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 135 |
author_reputation | 39,788,295,023,882 |
root_title | "A Python notebook to visaulize the price history of any Steem/Hive Engine token" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 97,202,628 |
net_rshares | 576,929,261,811 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
phortun | 0 | 576,929,261,811 | 100% |
Yeah. It looks like the front ends kind of got stuck in a 5 hour old time loop and they now randomly switch between the loop and the actual reality :) Interesting.
author | phortun |
---|---|
permlink | q9v8ss |
category | hive-133987 |
json_metadata | {"app":"hiveblog/0.1"} |
created | 2020-05-05 16:07:42 |
last_update | 2020-05-05 16:07:42 |
depth | 3 |
children | 0 |
last_payout | 2020-05-12 16:07:42 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.549 HBD |
curator_payout_value | 0.549 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 163 |
author_reputation | 1,190,564,733,782,207 |
root_title | "A Python notebook to visaulize the price history of any Steem/Hive Engine token" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 97,202,747 |
net_rshares | 2,572,212,433,678 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
dhimmel | 0 | 2,504,707,260,508 | 69% | ||
liltammy | 0 | 65,746,988,774 | 100% | ||
libuska | 0 | 1,758,184,396 | 100% |