/// <summary> /// Checks service is alive /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <object> IsAliveAsync(this ITradesAdapterAPI operations, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.IsAliveWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Returns latest trades based on asset pair /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='assetPairId'> /// ID of asset pair /// </param> /// <param name='skip'> /// How many items to skip /// </param> /// <param name='take'> /// How many items to take /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <object> AssetPairIdByAssetPairIdGetAsync(this ITradesAdapterAPI operations, string assetPairId, int skip, int take, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.AssetPairIdByAssetPairIdGetWithHttpMessagesAsync(assetPairId, skip, take, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Checks service is alive /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> public static object IsAlive(this ITradesAdapterAPI operations) { return(operations.IsAliveAsync().GetAwaiter().GetResult()); }
/// <summary> /// Returns latest trades based on asset pair /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='assetPairId'> /// ID of asset pair /// </param> /// <param name='skip'> /// How many items to skip /// </param> /// <param name='take'> /// How many items to take /// </param> public static object AssetPairIdByAssetPairIdGet(this ITradesAdapterAPI operations, string assetPairId, int skip, int take) { return(operations.AssetPairIdByAssetPairIdGetAsync(assetPairId, skip, take).GetAwaiter().GetResult()); }