Fix allocated amount when no bot
This commit is contained in:
@@ -25,7 +25,7 @@ public interface IBotService
|
||||
Task<IEnumerable<TradingBotConfig>> GetBotConfigsByIdsAsync(IEnumerable<Guid> botIds);
|
||||
Task<bool> UpdateBotStatisticsAsync(Guid identifier);
|
||||
Task<bool> SaveBotStatisticsAsync(Bot bot);
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Computes the remaining available USDC allocation for the provided account,
|
||||
/// subtracting the sum of BotTradingBalance from other bots using the same account.
|
||||
@@ -35,7 +35,7 @@ public interface IBotService
|
||||
/// <param name="excludeIdentifier">Bot identifier to exclude from allocation sum.</param>
|
||||
/// <returns>Available USDC amount that can be allocated.</returns>
|
||||
Task<decimal> GetAvailableAllocationUsdAsync(Account account, Guid excludeIdentifier = default);
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Gets paginated bots with filtering and sorting
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user