fix signal and get position during closing

This commit is contained in:
2025-05-14 14:48:01 +07:00
parent 15190a0516
commit 456867c352
3 changed files with 420 additions and 419 deletions

View File

@@ -458,10 +458,10 @@ public class EvmManager : IEvmManager
{
// Log the error
Console.Error.WriteLine($"Error initializing address: {ex.Message}");
return new PrivyInitAddressResponse
{
Success = false,
Error = ex.Message
return new PrivyInitAddressResponse
{
Success = false,
Error = ex.Message
};
}
}
@@ -660,7 +660,9 @@ public class EvmManager : IEvmManager
{
account = account.Key,
ticker = ticker.ToString(),
direction = direction.ToString(),
direction = direction == TradeDirection.Long
? TradeDirection.Short.ToString()
: TradeDirection.Long.ToString(),
});
trade = new Trade(
DateTime.UtcNow,