In [1]:
import sys
from qtx import qtx
In [2]:
import pandas as pd
In [3]:
import warnings
warnings.filterwarnings('ignore')
In [4]:
import matplotlib.pyplot as plt
%matplotlib inline
%pylab inline
pylab.rcParams['figure.figsize'] = (15, 9)
In [5]:
api = "market-data-eod"
You can request your trial key at https://quantextive.com/request_aex/ or via the AEX portal (https://quantextive.com/dashboard)
In [6]:
api_key = '*****************'
In [7]:
params = {
'securityId': 'NSE:7UP',
'startDate': '2016-11-01',
'endDate': '2017-03-18'
}
See a list of all companies accessible with the API at https://quantextive.com/api_company_list/
See a list of all available endpoints (https://quantextive.com/api_home/)
In [8]:
client = qtx.ApiClient()
In [9]:
data = client.get(api_key, api, params).data_frame()
In [10]:
data.head()
Out[10]:
In [11]:
data.dtypes
Out[11]:
In [12]:
data2 = data.convert_objects(convert_numeric=True, copy=True)
In [13]:
data3 = data2.set_index('date')
In [14]:
data3.head()
Out[14]:
In [15]:
data3["close_value"].plot(grid = True)
Out[15]:
In [ ]: