Content-Length: 261283 | pFad | http://github.com/Nasdaq/data-link-python/issues/51

87 Bugs when setting API-key · Issue #51 · Nasdaq/data-link-python · GitHub
Skip to content

Bugs when setting API-key #51

Open
@Hvass-Labs

Description

@Hvass-Labs

Python 3.12 and nasdaqdatalink 1.0.4 used in a Jupyter Notebook.

My API key works fine when I enter a URL in my web-browser like this https://data.nasdaq.com/api/v3/datatables/SHARADAR/SF1?ticker=MSFT&api_key=MY-API-KEY

But there seems to be several bugs when setting the API-key using the Python API and then calling the function export_table():

  1. Using read_key() makes the first call to export_table() work, but following calls give this error:

    AuthenticationError: (Status 400) (Nasdaq Data Link Error QEAx01) We could not recognize your API key. Please check your API key and try again.

  2. Setting the API-key using os.environ['NASDAQ_DATA_LINK_API_KEY'] = 'MY-API-KEY' worked the other day but not anymore and I get the following error:

    ForbiddenError: (Status 403) (Nasdaq Data Link Error QEPx04) A valid API key is required to retrieve data. Please check your API key and try again. You can find your API key under your account settings.

The only solution that seems to be working properly is to pass the API-key directly to the function export_table()

Please fix this problem. Thanks.

PS: It is very annoying that you have auto-response spamming the message-threads here. It makes it hard to read the actual discussions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: http://github.com/Nasdaq/data-link-python/issues/51

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy