webcerebrium / java-binance-api

Java Binance API Client
MIT License
73 stars 40 forks source link

Increase the speed of order request #13

Open spapapan opened 6 years ago

spapapan commented 6 years ago

This post is not an issue but more like a suggestion for optimization.

I am wondering if it's possible by any means to lower the time that is required to POST an order. If the price is guaranteed it takes 1 second to send the request and get the order registered. Is there a chance to lower that time ?

wcrbrm commented 6 years ago

we doubt this is something that such API wrapper can provide. I guess on a free markets like these there is no guarantees - neither about time nor about the speed of order processing

spapapan commented 6 years ago

From your experience do you think that there is something someone can do that has nothing to do with the server, to increase the speed of the request ? Also, are you 100% sure that the code you uploaded is optimal regarding the time of the ORDER request?

wcrbrm commented 6 years ago

The code in this library is just a wrapper around Binance business processes, internals of which are not disclosed. They can do any magic on their end in terms of slowing down your orders and speeding up "theirs". And a lot of more. This is centralized exchange after all with all the consequences for traders.

So this library is just a client to call their publicly documented API.

spapapan commented 6 years ago

Hmmm, ok. Great job by your side btw. Thanks for your answers.