A
A
Alexey Poloz2017-07-20 02:48:38
Python
Alexey Poloz, 2017-07-20 02:48:38

Python How to track Gazprom stock price?

I tried pandas_datareader, but there are errors everywhere
And quandl, as far as I understand - there is no gazprom there
How to configure pandas or what other libraries are there?
This worked, but accordingly the question - How to get shares of Gazprom, GAZP - does not fit

from pandas_datareader import data
import pandas as pd

tickers = ['AAPL', 'MSFT']
data_source = 'google'
start_date = '2010-01-01'
end_date = '2016-12-31'

panel_data = data.DataReader(tickers, data_source, start_date, end_date)
close = panel_data.ix['Close']
all_weekdays = pd.date_range(start=start_date, end=end_date, freq='B')
close = close.reindex(all_weekdays)
close.head(10)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Sokolov, 2017-07-20
@sergiks

Connect to the API of the Moscow Exchange . There's an example in Python there .
You are interested in the GAZP index.

A
alex maslakoff, 2017-07-20
@teke_teke

go to the gazprom website, find their api and make requests.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question