forked from Aaronontheweb/InMemoryCQRSReplication
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFill.cs
41 lines (33 loc) · 1.05 KB
/
Fill.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
using System;
using System.Collections.Generic;
using System.Text;
namespace Akka.CQRS.Events
{
/// <summary>
/// Fill an open order
/// </summary>
public sealed class Fill : IWithOrderId, IWithStockId
{
public Fill(string orderId, string stockId, double quantity, decimal price,
string filledById, DateTimeOffset timestamp, bool partialFill = false)
{
OrderId = orderId;
Quantity = quantity;
Price = price;
FilledById = filledById;
Timestamp = timestamp;
StockId = stockId;
Partial = partialFill;
}
public string OrderId { get; }
public double Quantity { get; }
public decimal Price { get; }
public string FilledById { get; }
public DateTimeOffset Timestamp { get; }
/// <summary>
/// When <c>true</c>, indicates that the order was only partially filled.
/// </summary>
public bool Partial { get; }
public string StockId { get; }
}
}