Ejemplo n.º 1
0
 public static Task <ApiResponse <OhlcData> > GetOhlcAsync(IOhlcProvider provider, OhlcContext context)
 {
     return(ApiHelpers.WrapExceptionAsync(() => provider.GetOhlcAsync(context), nameof(GetOhlc), provider, context));
 }
Ejemplo n.º 2
0
 public static ApiResponse <OhlcData> GetOhlc(IOhlcProvider provider, OhlcContext context)
 {
     return(AsyncContext.Run(() => GetOhlcAsync(provider, context)));
 }