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