-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please make an API guide doc #60
Comments
There is no guide at the moment since I didn't investigate enough on how the API works. |
I'm completely new to Javascript, APIs, and all the rest of it, so please forgive me if this is a bit of a dumb question! I'm curious to know how you figured out that this particular API URL was even queryable to begin with? How did you figure out that the pairId was required for a query? How did you find out where to find the different pairId's on the website? I'm guessing there's no documentation available to the public for this API, so I'm assuming you would have had to sort of "work backwards" to figure it all out? I'm curious about how you went about this process. For example, I haven't investigated it at all, but it doesn't stand out to me as particularly obvious what the To me, with those parameters, it seems like the period is set to a month, and the interval is set to daily, so then the results returned should be max 31 (i.e. a single result for every day of the month)? I'll have to test some different parameters out to try and build my understanding, but I'm overall curious how you went about figuring all of this information out in the beginning? |
Hi @yortug thanks for the question. I just used the Google Chrome Console, Network tab. In that tab you can find all the requests the browser send to a server (website) and the responses. I found out that to load the charts they are using an internal API that does not require any auth. See gif below: About the parameters, I'm also not sure what they exactly do, but I discovered them clicking the chart and watching the request parameters change. |
Hi Davide, thanks for your code. Actually I think the investing.com API package is a creative solution. But seems that the API guide doc is not ready yet. Or can I find it somewhere? I hope you could give me a hint. Thanks!
The text was updated successfully, but these errors were encountered: