Coder Social home page Coder Social logo

Comments (4)

kwsorensen avatar kwsorensen commented on July 3, 2024

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.

aseams avatar aseams commented on July 3, 2024

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.

quanthero avatar quanthero commented on July 3, 2024
              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.

quanthero avatar quanthero commented on July 3, 2024

it works for me

from finnhub-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.