Пример #1
0
 /// <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);
     }
 }
Пример #2
0
 /// <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);
     }
 }
Пример #3
0
 /// <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());
 }
Пример #4
0
 /// <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());
 }