Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConnectToDepthWebSocketCombinedPartial #171

Open
Mohsin-Habib opened this issue Jul 15, 2020 · 0 comments
Open

ConnectToDepthWebSocketCombinedPartial #171

Mohsin-Habib opened this issue Jul 15, 2020 · 0 comments

Comments

@Mohsin-Habib
Copy link

Mohsin-Habib commented Jul 15, 2020

Issue Overview

i am sending request "ConnectToDepthWebSocketCombinedPartial" and get an exception

|Fatal|WebSocket.Connect|WebSocketSharp.WebSocketException: Not a WebSocket handshake response.
at WebSocketSharp.WebSocket.doHandshake()
at WebSocketSharp.WebSocket.connect()

Package Version: ?.?.?

BinanceDotNet by jon evans v4.12.0

Repro Steps

BinancePartialDepthData r = null;

        //var ApiKey = ".....";
        //var SecretKey = "....";

        var client = new BinanceClient(new ClientConfiguration()
        {
            ApiKey = ApiKey,
            SecretKey = SecretKey,
        });

Thread WebSocketSyncing = new Thread(() =>
{
var manualWebSocketClient = new InstanceBinanceWebSocketClient(client);
try
{
var socketId = manualWebSocketClient.ConnectToDepthWebSocketCombinedPartial("BTCUSDT", "1000ms", data =>
{
try
{
r = data;
}
catch (Exception)
{
Environment.Exit(0);
}
});
}
catch (Exception ex)
{
Console.WriteLine("ERROR ON SOCKET: " + ex.Message);
Environment.Exit(0);
}
});

Other Information

Other information here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant