patelneel55 / financialmodelingprep

A node wrapper to the Financial Modeling Prep API for financial data
MIT License
35 stars 10 forks source link

fix appending of the apikey to the query url #20

Closed gabriardi closed 3 years ago

gabriardi commented 3 years ago

Previously the apikey was attached to the queryString and the queryString to the url. In case of parameters, this resulted in duplicating the parameters and attaching the apikey without the '&' symbol. That was the reason for the error message 'Error Message': 'Invalid API KEY. Please retry or visit our documentation to create one FREE https://financialmodelingprep.com/developer/docs' This pr fixes it attaching the apikey at the end of the url.

oleksii-dmytrenko commented 3 years ago

@patelneel55 the latest version from npm still has this bug, can you release fixed version please?