This is a basic example of how to download financial data with python

In [2]:
# Libraries
import pandas as pd
from pandas.io.data import DataReader
import matplotlib.pyplot as plt
In [8]:
# Data download
df = DataReader("SPY", "yahoo", "20000101", "20140612")
In [18]:
# See first records
df.head()
Out[18]:
Open High Low Close Volume Adj Close
Date
2000-01-03 148.25 148.25 143.88 145.44 8164300 111.46
2000-01-04 143.53 144.06 139.64 139.75 8089800 107.10
2000-01-05 139.94 141.53 137.25 140.00 12177900 107.29
2000-01-06 139.62 141.50 137.75 137.75 6227200 105.56
2000-01-07 140.31 145.75 140.06 145.75 8066500 111.70

5 rows × 6 columns

In [19]:
# Plot the data
plt.plot(df.index, df['Close'])
plt.show()