18 lines
559 B
C#
18 lines
559 B
C#
namespace Bts.SharedStreams.StreamFactories;
|
|
|
|
using bts.api;
|
|
|
|
public readonly struct SpreadBookRow {
|
|
public SpreadBookRow(SyntheticBook book, IReadOnlyList<Leg> legs) {
|
|
Book = book;
|
|
Legs = legs;
|
|
}
|
|
|
|
public uint SecurityId => Book.SecurityId;
|
|
public string? SecurityName => string.Join(" • ", Legs.Select(l => $"{l.Quantity}{l.Name}"));
|
|
public SyntheticBook Book { get; }
|
|
public IReadOnlyList<Leg> Legs { get; }
|
|
|
|
public record Leg(Venue Venue, SecurityType Type, string Name, uint Id, double CashPerPoint, double Quantity);
|
|
}
|