JKorf / Bitget.Net

A C# .netstandard client library for the Bitget REST and Websocket Spot and Futures API focusing on clear usage and models
https://jkorf.github.io/Bitget.Net/
MIT License
13 stars 10 forks source link

Query timeout on socketClient-Updates #26

Closed Dosihris closed 3 months ago

Dosihris commented 4 months ago

Describe the bug I want to use socketClient.SpotApi.SubscribeToTickerUpdatesAsync and socketClient.SpotApi.SubscribeToTradeUpdatesAsync but i get always a Query timeout (CancellationRequestedError)

To Reproduce

        string pPairName = "KASUSDT" // Also "ETHUSDT" results in the same error

        var subscriptiona = await socketClient.SpotApi.SubscribeToTickerUpdatesAsync(pPairName, async data =>
        {
            await HandleTick(pOrderId, data);
        });

        var subscriptionb = await socketClient.SpotApi.SubscribeToTradeUpdatesAsync(pPairName, async data =>
        {
            await HandleTick(pOrderId, data);
        });

Expected behavior I would expect that subscriptiona and subscriptionb are successful subscribed.

In the same application, i am using the JKorf Subscription for Binance and Mexc and this is workingm so i think it could not be a firewall or something like this... (or is Bitget a different port that maybe is blocked?)

PhilAlain commented 4 months ago

I had a similar issue with balance subscription (issue # 24) Try : socketClient.SpotApiV2.Subscribe...

Dosihris commented 4 months ago

I had a similar issue with balance subscription (issue # 24) Try : socketClient.SpotApiV2.Subscribe...

Indeed, that worked... Thank you... Unbelievable, that i haven't seen this V2 before...