Plot Trending Stocks in Python for Free

In this post, we will go over how to make an API call to receive the list of top trending stocks in Python. Using this technique, you can format the list and build dashboards like this one below.

Make the API call

To receive the list of trending tickers, their formal name, and price, you are going to need to make an API call. For that, simply import requests and json. Then, any request can be saved as request = requests.get(“URL”). Replace URL with any supported Styvio URL below to start importing stock market data.

From there, use JSON to query down the API results, and you should be good to go. I hope this helped, and make sure to sign up free for a Styvio account here. For a more in depth guide on the actual plotting process, check out our full length guide.