mirror of
https://github.com/JKorf/CryptoExchange.Net.git
synced 2026-10-17 16:40:55 +00:00
Added ITransferRestClient, updated Shared IBalanceRestClient to use SharedAccountType
This commit is contained in:
@@ -12,7 +12,7 @@ namespace CryptoExchange.Net.SharedApis
|
||||
/// <summary>
|
||||
/// Balances request options
|
||||
/// </summary>
|
||||
EndpointOptions<GetBalancesRequest> GetBalancesOptions { get; }
|
||||
GetBalancesOptions GetBalancesOptions { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Get balances for the user
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
using CryptoExchange.Net.Objects;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CryptoExchange.Net.SharedApis
|
||||
{
|
||||
/// <summary>
|
||||
/// Client for transferring funds between account types
|
||||
/// </summary>
|
||||
public interface ITransferRestClient : ISharedClient
|
||||
{
|
||||
/// <summary>
|
||||
/// Transfer request options
|
||||
/// </summary>
|
||||
TransferOptions TransferOptions { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Transfer funds between account types
|
||||
/// </summary>
|
||||
/// <param name="request">Request info</param>
|
||||
/// <param name="ct">Cancellation token</param>
|
||||
Task<ExchangeWebResult<SharedId>> TransferAsync(TransferRequest request, CancellationToken ct = default);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user