an0o0nyme avatar image
an0o0nyme asked ·

Discrepancy in stock exchange API


I am using python-api to fetch company data as described at

One of the properties that CompanyApi.get_company() returns is a stock_exchange. So for example available at your website it returns:

 'stock_exchange': 'NasdaqGS',

However if I now go and try to fetch information about that specific stock exchange using code provided at

and replacing identifier argument with value from response above - namely 'NasdaqGS' - it will throw an error:

HTTP response body: {"error":"StockExchange not found. The data may not be available in the Sandbox environment.","message":"An error occured. Please contact with the details."}

Is there a possibility to return value of MIC or Intrinio ID for value for stock_exchange that could be used for other APIs, rather than value that seems to be just a str?

Last time I posted a question here it was fixed in a github repo fairly quickly. However I did not get notified in any way. Can you please let me know HERE whenever you address this ticket?

· 1
10 |600 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Hi, I have not been able to reproduce the response from the company api. When I use the sample provided on the page above it returns "NASDAQ" as a string formatted for simplicity of input into other endpoints, or to be used elsewhere as needed.

This is after some major changes to the Python SDK which may have fixed a potential bug, however, the stock exchange value will still be formatted as a string for ease of use.

0 Likes 0 · ·

0 Answers

· Write an Answer

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.