Add ETH and USDC balance check before start/restart bot and autoswap
This commit is contained in:
@@ -45,7 +45,7 @@ public interface IExchangeService
|
||||
decimal GetVolume(Account account, Ticker ticker);
|
||||
Task<List<Trade>> GetTrades(Account account, Ticker ticker);
|
||||
Task<bool> CancelOrder(Account account, Ticker ticker);
|
||||
decimal GetFee(Account account, bool isForPaperTrading = false);
|
||||
Task<decimal> GetFee(Account account, bool isForPaperTrading = false);
|
||||
Task<Candle> GetCandle(Account account, Ticker ticker, DateTime date);
|
||||
Task<decimal> GetQuantityInPosition(Account account, Ticker ticker);
|
||||
|
||||
|
||||
@@ -17,5 +17,7 @@ namespace Managing.Application.Abstractions.Services
|
||||
Task<SwapInfos> SendTokenAsync(string senderAddress, string recipientAddress, Ticker ticker, decimal amount, int? chainId = null);
|
||||
|
||||
Task<List<Balance>> GetWalletBalanceAsync(string address, Ticker[] assets, string[] chains);
|
||||
|
||||
Task<decimal> GetEstimatedGasFeeUsdAsync();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user