Comments (4)
I just downloaded the python api to test it out.
Ran the code from the readme and received an error at line 147.
# Tick Data
print(finnhub_client.stock_tick('AAPL', '2020-03-25', 500, 0))
File "example.py", line 147, in
print(finnhub_client.stock_tick('AAPL', '2020-03-25', 500, 0))
File "C:\Users\soren\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\finnhub\client.py", line 217, in stock_tick
return self._get("/stock/tick", params=params)
File "C:\Users\soren\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\finnhub\client.py", line 69, in _get
return self._request("get", path, **kwargs)
File "C:\Users\soren\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\finnhub\client.py", line 39, in _request
return self._handle_response(response)
File "C:\Users\soren\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\finnhub\client.py", line 44, in _handle_response
raise FinnhubAPIException(response)
finnhub.exceptions.FinnhubAPIException: FinnhubAPIException(status_code: 401): JSON error message from Finnhub: You don't have access to this resources. Please contact [email protected]
from finnhub-python.
Still happening with the readme examples.
File "c:\Users\[USER]\Documents\Code Stuff\python\HoldingsReportGenerator\main.py", line 154, in <module>
print(finnhub_client.stock_tick('AAPL', '2020-03-25', 500, 0))
File "C:\Users\[USER]\AppData\Local\Programs\Python\Python310\lib\site-packages\finnhub\client.py", line 235, in stock_tick
return self._get("/stock/tick", params=params)
File "C:\Users\[USER]\AppData\Local\Programs\Python\Python310\lib\site-packages\finnhub\client.py", line 71, in _get
return self._request("get", path, **kwargs)
File "C:\Users\[USER]\AppData\Local\Programs\Python\Python310\lib\site-packages\finnhub\client.py", line 41, in _request
return self._handle_response(response)
File "C:\Users\[USER]\AppData\Local\Programs\Python\Python310\lib\site-packages\finnhub\client.py", line 46, in _handle_response
raise FinnhubAPIException(response)
finnhub.exceptions.FinnhubAPIException: FinnhubAPIException(status_code: 401): JSON error message from Finnhub: You don't have access to this resources. Please contact [email protected]```
from finnhub-python.
c count p s skip t total v x
0 [1, 24] 500 255.00 AAPL 0 1585123200073 755758 2513 P
1 [1, 24, 12] 500 255.00 AAPL 0 1585123200315 755758 24 P
2 [1, 24, 12] 500 255.00 AAPL 0 1585123200381 755758 1 P
3 [1, 24, 12] 500 255.00 AAPL 0 1585123200381 755758 49 P
4 [1, 8, 24, 12] 500 255.00 AAPL 0 1585123200475 755758 1 P
.. ... ... ... ... ... ... ... ... ..
495 [1, 8, 24, 12] 500 254.50 AAPL 0 1585124243237 755758 87 Q
496 [1, 24, 12] 500 254.99 AAPL 0 1585124251405 755758 40 Q
497 [1, 24, 12] 500 254.97 AAPL 0 1585124254835 755758 10 Q
498 [1, 24, 12] 500 254.99 AAPL 0 1585124259561 755758 1 P
499 [1, 24, 12] 500 254.97 AAPL 0 1585124260010 755758 30 Q
from finnhub-python.
it works for me
from finnhub-python.
Related Issues (20)
- Time out? HOT 4
- "goodwill" missing from financials endpoint?
- Internal Server Error when testing technical indicator endpoint
- Missing 1 month of data on candles endpoint
- Why not wrapping stock_candles results into a pandas.DataFrame?
- Earning Calendar
- Could I use this API to get daily stock price everyday?
- symbol lookup is not returning useful results HOT 3
- QQQ 2021-06-15 13:30 data missing HOT 1
- Feasability of using endpoint: stock/symbol?exchange=US to create/update a masterfile
- META (Facebook) 2022-01-31 ~ 2022-06-08 1 minute bars missing
- any plans to add futures data?
- raise Key Error
- Just curious... HOT 1
- marketcap
- #stock_candle not clear HOT 1
- [Question] About the type `PUBLIC` in stock_symbols
- Multiple symbols request.
- crypto_candles is giving data of wrong length and dates HOT 1
- financials_reported not getting last report of 2023 on aapl stock
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from finnhub-python.