fix signal and get position during closing
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user