public static Task <ApiResponse <AggregatedAssetPairData> > GetCoinSnapshotAsync(ICoinSnapshotAggregationProvider provider, AssetPairDataContext context) { return(ApiHelpers.WrapExceptionAsync(() => provider.GetCoinSnapshotAsync(context), nameof(GetCoinSnapshot), provider, context)); }
public static ApiResponse <AggregatedAssetPairData> GetCoinSnapshot(ICoinSnapshotAggregationProvider provider, AssetPairDataContext context) { return(AsyncContext.Run(() => GetCoinSnapshotAsync(provider, context))); }