20 lines
460 B
C#
20 lines
460 B
C#
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
|
|
}
|