Clean and update event
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
using Managing.Application.Abstractions.Models;
|
||||
using Managing.Application.Bots.Models;
|
||||
using Orleans.Concurrency;
|
||||
|
||||
@@ -20,28 +19,38 @@ namespace Managing.Application.Abstractions.Grains
|
||||
[OneWay]
|
||||
Task UpdateAgentNameAsync(string agentName);
|
||||
|
||||
/// <summary>
|
||||
/// Generates a summary of the agent's stats for the AgentRegistryGrain.
|
||||
/// </summary>
|
||||
[OneWay]
|
||||
Task UpdateSummary();
|
||||
|
||||
/// <summary>
|
||||
/// Registers a new bot with this agent.
|
||||
/// </summary>
|
||||
[OneWay]
|
||||
Task RegisterBotAsync(Guid botId);
|
||||
|
||||
/// <summary>
|
||||
/// Unregisters a bot from this agent.
|
||||
/// </summary>
|
||||
[OneWay]
|
||||
Task UnregisterBotAsync(Guid botId);
|
||||
|
||||
/// <summary>
|
||||
/// Handles stream notifications for agent summary updates.
|
||||
/// Handles position opened events for real-time agent summary updates.
|
||||
/// </summary>
|
||||
/// <param name="updateEvent">The update event from the stream</param>]
|
||||
/// <param name="evt">The position opened event</param>
|
||||
[OneWay]
|
||||
Task OnAgentSummaryUpdateAsync(AgentSummaryUpdateEvent updateEvent);
|
||||
Task OnPositionOpenedAsync(PositionOpenEvent evt);
|
||||
|
||||
/// <summary>
|
||||
/// Handles position closed events for real-time agent summary updates.
|
||||
/// </summary>
|
||||
/// <param name="evt">The position closed event</param>
|
||||
[OneWay]
|
||||
Task OnPositionClosedAsync(PositionClosedEvent evt);
|
||||
|
||||
/// <summary>
|
||||
/// Handles position update events for real-time PnL and status updates.
|
||||
/// </summary>
|
||||
/// <param name="evt">The position update event</param>
|
||||
[OneWay]
|
||||
Task OnPositionUpdatedAsync(PositionUpdatedEvent evt);
|
||||
|
||||
/// <summary>
|
||||
/// Coordinates ETH balance checking and swapping for all bots under this agent.
|
||||
|
||||
Reference in New Issue
Block a user