This repository was archived by the owner on Nov 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Getting started
Daniil edited this page Feb 1, 2016
·
1 revision
Simply type:
pip install inquisitor
Or if you want to use pandas converter as well:
pip install inquisitor[pandas]
inquisitor = Inquisitor("your_token")
Where your_token is your [https://www.inquirim.com/](Inquirim API key). Now you can use inquisitor to access API methods.
You can filter series by ticker, dataset, or by search terms:
inqusitior.series(self, page=1, ticker=None, search="growth", dataset="RAIL_TF_HAUTYPE", expand="both", geography="Austria")
This will return generator object with list of results. If page argument is None generator object will try to load one page after another:
for data in inquisitor.series(geography="France"):
print data.ticker
This example will load all series for specified query and make as much API queries as needed.
inqusitior will raise inquisitor.ApiException every time server respond with unexpected error.
try:
Inquisitor("wrong_key")
except ApiException:
pass