namespace Bts.SharedStreams.StreamFactories; using bts.api; public readonly struct SpreadBookRow { public SpreadBookRow(SyntheticBook book, IReadOnlyList 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 Legs { get; } public record Leg(Venue Venue, SecurityType Type, string Name, uint Id, double CashPerPoint, double Quantity); }