java-binance-api icon indicating copy to clipboard operation
java-binance-api copied to clipboard

Get price market into websocket

Open enbplas11 opened this issue 6 years ago • 0 comments

Good, I have a problem, I am making Market type orders, what I do is first check the prices of the getAllPrices library and then proceed to place the order, but at that moment when I generate the order the price changes; I imagine that it happens because a call is made to RestApi and that takes a while that when generating the order the price change. I am now using webSocket, do you know where I can get the market price in the methods that are associated with the websocket?

enbplas11 avatar Oct 15 '19 14:10 enbplas11