mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-06 18:41:12 +01:00
* Added custodian account trade support * UI updates * Improved UI spacing and field sizes + Fixed input validation * Reset error message when opening trade modal * Better error handing + test + surface error in trade modal in UI * Add delete confirmation modal * Fixed duplicate ID in site nav * Replace jQuery.ajax with fetch for onTradeSubmit * Added support for minimumTradeQty to trading pairs * Fixed LocalBTCPayServerClient after previous refactoring * Handling dust amounts + minor API change * Replaced jQuery with Fetch API + UX improvements + more TODOs * Moved namespace because Rider was unhappy * Major UI improvements when swapping or changing assets, fixed bugs in min trade qty, fixed initial qty after an asset change etc * Commented out code for easier debugging * Fixed missing default values Co-authored-by: Dennis Reimann <mail@dennisreimann.de>
29 lines
864 B
C#
29 lines
864 B
C#
using System.Collections.Generic;
|
|
using BTCPayServer.Client.Models;
|
|
|
|
namespace BTCPayServer.Abstractions.Custodians.Client;
|
|
|
|
/**
|
|
* 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;
|
|
}
|
|
}
|