For example, we pass on the share price parameter as the third variable in the code below.Ĭustom analysis with the underlying DataFrame This helps, in an indirect way, visualize more than two variables in a 2-dimensional plot. You can also pass on a third variable to be used for scaling the size of the markers in the scatter plot. You can also plot simple scatter plots to visually analyze inter-relationships between financial metrics. You can also include usual Matplotlib keyword arguments such as color and transparency (alpha). To do that, just pass on the name of the variable you want to be plotted. It is often helpful to examine various metrics and financial ratios in simple bar charts. In the package, we have included code for simple visual analytics with the data. Note, we pass on an argument ‘profile’, ‘metrics’ or ‘ration’, and get back the list of corresponding data items. We can easily examine the kind of data that has been pulled from the API service. Let’s say we want to download all the financial data for the following companies,Ī nicely formatted DataFrame is ready for your use! Building a DataFrame is as easy as passing on a list of ticker symbols and the code does all the data scraping and structuring job for you. We provide a built-in method to do just that. Working with Python dictionaries is fine but for large-scale data analytics, we should think of building a Pandas DataFrame. A partial screenshot is provided below.īuild a DataFrame with multiple companies’ data If we examine this dictionary, we will note that a huge amount of data has been pulled from the API endpoint. We can try it but we won’t be successful because we have not registered the secret key with the class object yet.įor all the methods in this class, we have to pass on the ticker symbol of the company (on the US financial market).
Let’s say we want to build a data dictionary for the company Apple (with the ticker symbol ‘AAPL’). We definitely want to start pulling the data now. We cannot access the data without registering the key Note that you need to have a file called Secret_Key.txt in the same directory as the code files. Read the secret API key from a file and register it We start by importing regular libraries and the class object. To keep the code clean, in this article, we show the use of the class in a test Jupyter notebook.