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