Notebook
In [55]:
import numpy as cal
import matplotlib.pyplot as plt
import pandas as pd
In [56]:
symbol = 'SPY'
price = get_pricing(symbol,fields = 'price', start_date= '2016-12-1', end_date= '2016-12-9',frequency = 'minute')
plt.plot(price)
Out[56]:
[<matplotlib.lines.Line2D at 0x7f75ffad3750>]
In [58]:
symbol = 'SPY'
price = get_pricing(symbol,fields = 'price', start_date= '2016-12-1', end_date= '2016-12-9',frequency = 'minute')
price.name = symbol
price = pd.DataFrame(price)
price['Date'] = price.index
price.index = range(0, len(price))
print price.head()
plt.plot(price[symbol])
       SPY                      Date
0  220.660 2016-12-01 14:31:00+00:00
1  220.563 2016-12-01 14:32:00+00:00
2  220.560 2016-12-01 14:33:00+00:00
3  220.440 2016-12-01 14:34:00+00:00
4  220.420 2016-12-01 14:35:00+00:00
Out[58]:
[<matplotlib.lines.Line2D at 0x7f7610132b50>]
In [ ]: