Binance.Net icon indicating copy to clipboard operation
Binance.Net copied to clipboard

BinanceSpotSymbolOrderBook NOT WORK with 7.2 version

Open heavymanto opened this issue 2 years ago • 8 comments

Describe the bug Test example code https://github.com/JKorf/CryptoExchange.Net/wiki/Orderbooks in my project it raise "can't connect to server" exception.

To Reproduce I have download Binance.Net project 6.13 and 7.2 version and test in BinanceNetTest class. The 6.13 version work but 7.2 not work and raise the same exception of my project. What wrong? Is a regretion?

7.2 version

image

6.13 version image

heavymanto avatar Feb 08 '22 13:02 heavymanto

It works fine for me. The difference between v6 and v7 is that the socket implementation has been replaced, so there could be something with that. If you change the book constructor to this, what is the output in V7?

var book = new BinanceSpotSymbolOrderBook("BTCUSDT", new BinanceOrderBookOptions
{
    SocketClient = new BinanceSocketClient(new BinanceSocketClientOptions
    {
        LogLevel = LogLevel.Trace
    }),
    LogLevel = LogLevel.Trace
});

JKorf avatar Feb 08 '22 15:02 JKorf

Hi, thank you for replay, this the result. The client work without credential?

image

heavymanto avatar Feb 08 '22 15:02 heavymanto

Where do you get the exception? It seems like status code 407 is returned, which would mean proxy credentials are required. Are you using a proxy?

JKorf avatar Feb 08 '22 16:02 JKorf

no, not use proxy, with vertion 6.13 it work fine whitout API credential. Test download stand alone release anche run in different enviroment to prevent specific customization. I have test this package https://github.com/JKorf/Binance.Net/archive/refs/heads/master.zip

heavymanto avatar Feb 08 '22 16:02 heavymanto

Again, it works fine for me. I tried with the zip you referenced, on two different computers. Only thing I couldn't change atm is the network. Did you test on another network?

JKorf avatar Feb 09 '22 20:02 JKorf

Ok, i have test with 2 different network, another local network, and my phone hotspot but the result are the same, with 6.x work, with 7.x not work. How can i help you to find problem?

Phone hotspot test image image

Another local network image image

heavymanto avatar Feb 15 '22 11:02 heavymanto

I would like downgrade to 6.x in my project but there in a package reference discrepancy because the reference of 6.x package is declarated CryptoExchnage.net MIN 3.9 but really is MAX this vertion. When I run it said not implemented method

image

Can i force change dependency? image

heavymanto avatar Feb 15 '22 12:02 heavymanto

I have update to release 8.0.3 and change error in

image

heavymanto avatar Feb 26 '22 14:02 heavymanto