webcerebrium / java-binance-api

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

Get price market into websocket #45

Open enbplas11 opened 4 years ago

enbplas11 commented 4 years ago

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?