WillKoehrsen / Data-Analysis

Data Science Using Python
https://medium.com/@williamkoehrsen/
MIT License
5.16k stars 3.64k forks source link

Only Load Partial data #17

Open yekai426 opened 6 years ago

yekai426 commented 6 years ago

When I initial the Stocker instance, I can only load stock data up to 3/27/2018. I tried other ticker, same problem. Please help.

microsoft = Stocker(ticker='MSFT') MSFT Stocker Initialized. Data covers 1986-03-13 to 2018-03-27.

Thanks.

arshiyasolei commented 5 years ago

The "WIKI exchange" is dead. This is due to them not being able to find any free alternatives (I think this one was community based)

WillKoehrsen commented 5 years ago

It might be possible to address this using iexfinance. It provides real-time data from the Investors Exchange: https://pypi.org/project/iexfinance/0.2/

arshiyasolei commented 5 years ago

Have a look at this code. It uses public data from the private robinhood api

#Graphs AMDs stock live
import numpy as np
import matplotlib.pyplot as plt
import Robinhood

Broker = Robinhood()
y = []
i =1 
while (True):
    Myl = broker.last_trade_price("AMD") 
    y.append(Myl[0][0])
    #plt.scatter(i, y)
    x = range(len(y))
    plt.plot(x, y, '-o')
    plt.pause(0.05)
    i = i+1

plt.show()
arshiyasolei commented 5 years ago

@WillKoehrsen I think it is a good idea to dump quandl and use the robinhood api.

jirisarri10 commented 5 years ago

I would like to know when you have thought to include the robinhood api or other api to solve Load Partial data. Thankyou!!