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

Can't get options order books (Bybit)

Open heinsenberg82 opened this issue 1 year ago • 0 comments

I'm trying the following code:

var book = orderBookFactory.Options.Create("ETH", "USDC");
        var startResult = await book.StartAsync();
        if (!startResult.Success)
        {
            // Handle error, error info available in startResult.Error
        }

        if (book.Status == OrderBookStatus.Syncing)
        {
            Console.WriteLine(book.BestBid.Price);
        }
        
        await book.StopAsync();

However, the startResult is unsuccessful and I'm getting the following sync error: [ServerError] Timeout while waiting for data.

I'm specifically trying the overload of the Create method that accepts baseAsset and quoteAsset as parameters, to check what exactly this method would return, as I couldn't find more details in the documentation.

heinsenberg82 avatar Aug 13 '24 16:08 heinsenberg82