Refactor code structure for improved readability and maintainability
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
namespace TradingBot.Models;
|
||||
|
||||
public class Trade
|
||||
{
|
||||
public Guid Id { get; set; } = Guid.NewGuid();
|
||||
public string Symbol { get; set; } = string.Empty;
|
||||
public TradeType Type { get; set; }
|
||||
public decimal Price { get; set; }
|
||||
public decimal Amount { get; set; }
|
||||
public DateTime Timestamp { get; set; }
|
||||
public string Strategy { get; set; } = string.Empty;
|
||||
public bool IsBot { get; set; }
|
||||
}
|
||||
|
||||
public enum TradeType
|
||||
{
|
||||
Buy,
|
||||
Sell
|
||||
}
|
||||
Reference in New Issue
Block a user