JKorf / FTX.Net

MIT License
31 stars 24 forks source link

Unexpected subscribe request answer: update (still persisting) #17

Closed JINK666 closed 2 years ago

JINK666 commented 2 years ago

Hi I still get the error "Unexpected subscribe request answer: update" when calling SubscribeToTickerUpdatesAsync. I included the code because maybe I am doing something wrong. The error is not thrown all the time, only occasionally.

Context.extendedSymbols.ForEach(async extended => {

        var result = await Context.FTXsocketClient.SubscribeToTickerUpdatesAsync(extended.symbolName, data =>
        {
            var result2 = data.Data.LastTrade;                 

        });

    });
JKorf commented 2 years ago

Hi, you're right, this could happen when the server sends data before the subscription has been confirmed. I've fixed it in the alpha version

JINK666 commented 2 years ago

Tnx for the response!

JKorf commented 2 years ago

Should be fixed in the 1.x releases