nhedlund / intrinio Goto Github PK
View Code? Open in Web Editor NEWIntrinio Python client SDK (unofficial)
License: MIT License
Intrinio Python client SDK (unofficial)
License: MIT License
The README needs to be updated, the following doesn't work
import intrinio
intrinio.username = 'USERNAME_FROM_INTRINIO'
intrinio.password = 'PASSWORD_FROM_INTRINIO'
Replace with
import intrinio
intrinio.client.username = 'USERNAME_FROM_INTRINIO'
intrinio.client.password = 'PASSWORD_FROM_INTRINIO'
FYI, I'm running Python 3.5.0
How can I retrieve fundamentals using this package?
Such as price to earnings ratio.
I was wanting to use this package but saw that the data return type is this panda dataframe stuff which I have never used (or want to learn). I was hoping that you could add some optional configuration which just returns raw json?
Thanks!
Hi! How are you automatically appending the documentation to the README file?
(full disclosure, I'm a complete scrub at python)
So when I query the historical endpoint, I get a the following dataframe:
But when I try to get the columns, I'm not really getting date columns. The only columns I get is:
When I try getting the date column, I get the following error: KeyError: "['date'] not in index"
Is this an issue dealing with the dtype='object'? Any chance anyone knows how to extract the date column for the dataframe (using pandas)?
remote: Collecting intrinio==0.1.14 (from -r /tmp/build_e74cdbc82006a71a2a1e42669e8f527a/requirements.txt (line 6))
remote: Downloading intrinio-0.1.14.tar.gz
remote: Complete output from command python setup.py egg_info:
remote: Traceback (most recent call last):
remote: File "<string>", line 1, in <module>
remote: File "/tmp/pip-build-wysyxkzd/intrinio/setup.py", line 9, in <module>
remote: import pypandoc
remote: ModuleNotFoundError: No module named 'pypandoc'
remote:
remote: ----------------------------------------
remote: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-wysyxkzd/intrinio/
remote: ! Push rejected, failed to compile Python app.
When making a call like this to intrinio API
https://api.intrinio.com/data_point?identifier=AERI&item=marketcap,enterprisevalue,ask_price
Note response does not have total_pages
at all
{
"data":[
{
"identifier":"AERI",
"item":"marketcap",
"value":2053125654.3
},
{
"identifier":"AERI",
"item":"enterprisevalue",
"value":1894659654.3
},
{
"identifier":"AERI",
"item":"ask_price",
"value":57.0
}
],
"result_count":3,
"api_call_credits":3
}
When using library like this:
intrinio.get('data_point', identifier='AERI', item='=marketcap,enterprisevalue,ask_price')
this line raises an error: KeyError: 'total_pages'
Line 75 in 3d81044
Suggestion: using default value 1
should solve the issue in such cases:
page.total_pages = response.get('total_pages', 1)
I am trying to get historical data for $VXTYN using:
df = intrinio.get(identifier='$VXTYN', start_date='2016-01-01')
TypeError: get() missing 1 required positional argument: 'endpoint'
not sure what argument is required. can you please help me out?
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://api.intrinio.com/prices?page_size=50000&start_date=2016-01-01&page_number=1&frequency=daily&sort_order=desc&identifier=AAPL
Hi - When I use the financials function to retrieve data for TTM and for YTD data, I get an error when the data is sorted. The other time periods appear to work fine.
The traceback is below. I'm using Python 3.6.
Thanks!
Traceback (most recent call last):
File "", line 1, in
financials_test = intrinio.financials('AAPL', type = 'TTM') #, type = 'TTM', statement = 'calculations')
File "C:\ProgramData\Anaconda3\lib\site-packages\intrinio\endpoints.py", line 153, in financials
r = r.sort_index()
File "C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\frame.py", line 3260, in sort_index
na_position=na_position)
File "C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\sorting.py", line 247, in nargsort
indexer = non_nan_idx[non_nans.argsort(kind=kind)]
TypeError: '<' not supported between instances of 'tuple' and 'int'
The web API key does not require a username/password combo
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.