# python


17 APR 2019

Reliably download historical market data from Yahoo! Finance with Python

fix-yahoo-finance aimed to offer a temporary fix to the problem by scraping the data from Yahoo! Finance and returning a the data in the same format as pandas_datareader's get_data_yahoo(), thus keeping the code changes in exisiting software to minimum

22 SEP 2018

Machine Learning for Trading (with Python): Webinar Recording, Slides and Notebook (IV)

In this webinar, I went over the basics of machine learning, and walked through an example of a trading strategy that leverages machine learning to achieve alpha

5 JUN 2018

Fast Data Store for Pandas Time-Series Data using PyStore

When I first confronted this issue, my immediate go-to solution was to use a database like MySQL or PostgreSQL. But as a Python developer and a heavy Pandas user, I was hoping for a more "Pythonic" solution. I was looking for a solution that will allow me to store Pandas dataframes fast and fetch them even faster -- all while keeping the data itself as portable as possible

25 AUG 2017

Live Trading with Python: Webinar Recording, Slides and Notebook (III)

I showed how to scrape historical data for daily strategies, work with streaming data, and execute and monitor trades in real-time, and it was full of examples using Interactive Brokers and Oanda FX

26 MAY 2017

Backtesting Trading Strategies with (pure) Python: Webinar Recording, Slides and Notebook (II)

You can jump directly to the Jupyter notebook that's stored on this GitHub repository, along with a Python file which contains functions I've used during the webinars

21 MAY 2017

You can still download Yahoo! Finance data using Pandas Datareader using this quick hack

Today I've releases a small Python library called fix-yahoo-finance that aims to offer a temporary fix to the problem by scraping the data from Yahoo! finance and returning a Pandas DataFrame/Panel in the same format as pandas_datareader's get_data_yahoo() method

4 APR 2017

Live Plotting in Python using Matplotlib and ZeroMQ

After going over the documentation and Stack Overflow I was finally able to get this working. To save others from the headache, I decided to post a working demo here as a public service

28 FEB 2017

Prototyping Trading Strategies with Python - Slides, Notebook and Webinar Recording (I)

Last week I had my first out of four webinars with futures.io about Prototyping Trading Strategies with Python and people seem to enjoy it :) I thought I'd share the webinar's slides, notebook and webinar recording here.

18 FEB 2017

Analyzing Twitter Sentiment with Python

I've recently launched a Twitter bot that posts a daily sentiment analysis for the S&P500 Stock Market Index, and thought I'd share the gist of the code here.