feat(bot): add FinlyticBot autonomous paper trading microservice with Alpaca Markets API integration
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using FinlyticCore.Models.Trades;
|
||||
|
||||
namespace FinlyticBot.Services;
|
||||
|
||||
public record SizingResult(
|
||||
bool IsApproved,
|
||||
string? RejectReason,
|
||||
decimal Quantity,
|
||||
decimal TotalPositionValue,
|
||||
decimal RiskAmount,
|
||||
decimal CalculatedCrv
|
||||
);
|
||||
|
||||
public interface IBotRiskSizingService
|
||||
{
|
||||
Task<SizingResult> EvaluateAndSizeTradeAsync(
|
||||
TradeProposalDto proposal,
|
||||
decimal accountEquity,
|
||||
int currentOpenTradesCount,
|
||||
decimal todayRealizedLossPercent,
|
||||
CancellationToken ct = default);
|
||||
}
|
||||
Reference in New Issue
Block a user