Posts

Showing posts from October, 2019

Downloading Custom Data for Build Alpha using Python

Image
Happy Friday! For this Free Friday edition, I am going to do something new. I am going to make this slightly educational and give away some code. I get tons of questions every week, but they mainly fall into two categories. The first question is in regards to adding custom data to Build Alpha . You can add intraday data, weekly data, custom bar type data, sentiment data, or even simple single stock data. The second question is in regards to using or learning Python. In this post, I will attempt to “kill two birds with one stone” and show a simple Python code to download stock data from the Yahoo Finance API. In fact, we will use Python to pull and save data ready formatted for Build Alpha for all 30 Dow stocks in less than 30 seconds. You can view the entire script later in this code or in the video below. The first few lines are simple to import statements pulling public code that we can reuse including the popular pandas library. import pandas