mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 14:22:40 +01:00
* Allow multi-step settings in custodian * Fix CustodianAccount.Name not saved * Reuse TradeQuantity for SimulateTrade * TradeQuantityJsonConverter accepts numerics * Fix build
26 lines
667 B
C#
26 lines
667 B
C#
#nullable enable
|
|
using System.Collections.Generic;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using BTCPayServer.Client.Models;
|
|
using Newtonsoft.Json.Linq;
|
|
|
|
namespace BTCPayServer.Abstractions.Custodians;
|
|
|
|
public interface ICustodian
|
|
{
|
|
/**
|
|
* Get the unique code that identifies this custodian.
|
|
*/
|
|
string Code { get; }
|
|
|
|
string Name { get; }
|
|
|
|
/**
|
|
* Get a list of assets and their qty in custody.
|
|
*/
|
|
Task<Dictionary<string, decimal>> GetAssetBalancesAsync(JObject config, CancellationToken cancellationToken);
|
|
|
|
public Task<Form.Form> GetConfigForm(JObject config, CancellationToken cancellationToken = default);
|
|
|
|
}
|