webcerebrium / java-binance-api

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

Websocket API depth with level doesn't work #33

Open mirxak opened 6 years ago

mirxak commented 6 years ago

Hi! binance-api version 1.0.9 I found an error with BinanceWebSocketAdapterDepth which you're using in BinanceApi.websocketDepth{level} methods. BinanceWebSocketAdapterDepth uses BinanceEventDepthUpdate which parses the event message from socket but response for @depth{levels} is another than for @depth and NullPointerExceptions are occured. I think you can make an another BinanceEventDepthUpdate and BinanceWebSocketAdapterDepth for using in websocketDepth methods.