public static Task <ApiResponse <OrderBook> > GetOrderBookAsync(IOrderBookProvider provider, OrderBookContext context) { return(ApiHelpers.WrapExceptionAsync(() => provider.GetOrderBookAsync(context), nameof(GetOrderBook), provider, context)); }
public static ApiResponse <OrderBook> GetOrderBook(IOrderBookProvider provider, OrderBookContext context) { return(AsyncContext.Run(() => GetOrderBookAsync(provider, context))); }