33 lines
862 B
C#
33 lines
862 B
C#
using KLHZ.Trader.Core.Contracts.Messaging.Dtos.Interfaces;
|
|
using KLHZ.Trader.Core.DataLayer.Entities.Orders.Enums;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace KLHZ.Trader.Core.DataLayer.Entities.Orders
|
|
{
|
|
[Table("orderbook_items")]
|
|
public class OrderbookItem : IOrderbookItem
|
|
{
|
|
[Column("id")]
|
|
public long Id { get; set; }
|
|
|
|
[Column("time")]
|
|
public DateTime Time { get; set; }
|
|
|
|
[Column("price")]
|
|
public decimal Price { get; set; }
|
|
|
|
[Column("count")]
|
|
public long Count { get; set; }
|
|
|
|
[Column("figi")]
|
|
public required string Figi { get; set; }
|
|
|
|
[Column("ticker")]
|
|
public required string Ticker { get; set; }
|
|
|
|
[Column("item_type")]
|
|
public OrderbookItemType ItemType { get; set; }
|
|
|
|
}
|
|
}
|