mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-23 22:46:49 +01:00
30 lines
857 B
C#
30 lines
857 B
C#
|
using System.Collections.Generic;
|
||
|
using BTCPayServer.Client.Models;
|
||
|
|
||
|
namespace BTCPayServer.Abstractions.Custodians;
|
||
|
|
||
|
/**
|
||
|
* The result of a market trade. Used as a return type for custodians implementing ICanTrade
|
||
|
*/
|
||
|
public class MarketTradeResult
|
||
|
{
|
||
|
public string FromAsset { get; }
|
||
|
public string ToAsset { get; }
|
||
|
/**
|
||
|
* The ledger entries that show the balances that were affected by the trade.
|
||
|
*/
|
||
|
public List<LedgerEntryData> LedgerEntries { get; }
|
||
|
/**
|
||
|
* The unique ID of the trade that was executed.
|
||
|
*/
|
||
|
public string TradeId { get; }
|
||
|
|
||
|
public MarketTradeResult(string fromAsset, string toAsset, List<LedgerEntryData> ledgerEntries, string tradeId)
|
||
|
{
|
||
|
this.FromAsset = fromAsset;
|
||
|
this.ToAsset = toAsset;
|
||
|
this.LedgerEntries = ledgerEntries;
|
||
|
this.TradeId = tradeId;
|
||
|
}
|
||
|
}
|