CryptoExchange.Net
CryptoExchange.Net copied to clipboard
Can't get options order books (Bybit)
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.