Closed refresko1 closed 4 years ago
This is the code i get when click "try it out", and works for me:
curl -k -X POST "https://api.darwinex.com/quotes/1.0/quotes" -H "accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer xxxxxxx-xxxx-xxxx-xxxx-xxxxx" -d "{ \"productNames\": [ \"DWZ.4.7\" ]}"
This is the code i get when click "try it out", and works for me:
curl -k -X POST "https://api.darwinex.com/quotes/1.0/quotes" -H "accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer xxxxxxx-xxxx-xxxx-xxxx-xxxxx" -d "{ \"productNames\": [ \"DWZ.4.7\" ]}"
Friend, thanks for answering Are you sure it runs well? I’m just testing it right there, Filling out the header: https://prnt.sc/skhow8 Filling out the product: https://prnt.sc/ski4lc and when I press "execute", it gives the impression that it is loading the information, but it never stops loading and that "loader" and I never get an answer: https://prnt.sc/ski58y
In your case, can you confirm that it returns?
if I press clear (after many minutes, to cancel that infinite "loading"), it presents me with the used curl, and as you can see, it is the same one that you teach me https://prnt.sc/skiic8
What am I doing wrong? i really don't get it Thanks for helping
Run it from your computer's terminal, must work both in windows and linux if you have curl installed. The quotes api is for streaming, maybe that's the reason for it not working on the doc's page. Likewise that code is just an example, in what programming language are you attempting to implement it?
Thanks friend for wanting to help This appears to me (from CMD) Am I doing it so bad? https://prnt.sc/sl74yg
In fact if I try another query, if I get a result https://prnt.sc/sl7it1
It's better for testing DWC.4.2, it's always open to market and streaming. Be careful with throttling
Perfect, thanks, Now it works, Thank you
the average response between each "update" is 1100 ms. Can I configure this time, or does it depend directly on the server?
thanks
Hi @refresko1,
The time between each update depends on several factors such as Quote price delta, and is not configurable by the API user.
I am testing "DarwinQuotesAPI - 1.0" and I cannot get the correct answer
I am testing it with this data, but it never returns anything (after 5 minutes) and I must pause the request
What is my mistake? Thank you