burakoner / OKX.Api

Up-to-date, most-complete, well-organized, well-documented, easy-to-use, multi-task and multi-thread compatible OKX Cryptocurrency Exchange Rest and Websocket Api Wrapper
MIT License
39 stars 15 forks source link

websocket #43

Closed vhd41 closed 11 months ago

vhd41 commented 1 year ago
      var ws = new OKXWebSocketApiClient();
        ws.SetApiCredentials("apiKey","secretKey","passPhrase");

        /* TradingAccount Updates (Private) */
        var res = await ws.TradingAccount.SubscribeToAccountUpdatesAsync((data) =>
        {
            if (data != null)
            {
                // ... Your logic here
            }
        });

res.Error.Message: Authentication failed: No credentials provided for private endpoint

but the Credentials work fine with Rest Api Can you help me please?

HH-T commented 12 months ago

the same. any solution?

burakoner commented 11 months ago

I've fixed this issue and will release new version today. I tested many times and got no error. In your case if error goes on please let me know

burakoner commented 11 months ago

Version 1.4.0 has been released. Please check these out https://github.com/burakoner/OKX.Api/commit/a2332273d6d885f3b58a532bc5d63793da3634d8 https://www.nuget.org/packages/OKX.Api/