refactor(bot): update paper trading models, broker integration, background services, and test project
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using FinlyticCore.Dtos.Bot;
|
||||
using FinlyticCore.Dtos.Trading;
|
||||
using FinlyticBot.Database.Entities;
|
||||
|
||||
namespace FinlyticBot.Services.Ledger;
|
||||
|
||||
public interface ISyntheticPaperBroker
|
||||
{
|
||||
Task<BotPositionEntity> OpenPositionAsync(
|
||||
TradeProposalDto proposal,
|
||||
decimal quantity,
|
||||
CancellationToken cancellationToken = default);
|
||||
|
||||
Task<BotPositionEntity> ClosePositionAsync(
|
||||
Guid positionId,
|
||||
decimal exitPrice,
|
||||
BotPositionStatus exitStatus,
|
||||
CancellationToken cancellationToken = default);
|
||||
|
||||
Task<AccountSummaryDto> GetSummaryAsync(CancellationToken cancellationToken = default);
|
||||
}
|
||||
Reference in New Issue
Block a user