Skip to content

Snapshot Treemap

Expected execution result is shown below (HTML syntax has been added at line 136 of the code so the page auto-refreshes)

gif

How to run?

  • Save the following code as FinMind_tree_map_flask.py
  • Install the package
pip install apscheduler plotly FinMind -q
  • Run the following command (replace your_token with your own token)
FINMIND_API_TOKEN=your_token python FinMind_tree_map_flask.py

The code is as follows

REF

medium