Provided: Booking Fee, Expiry Share Price, Statement Title, Selected Ticket, Ticket View
Outputs: Trades, Equity Trades, Cash Equities, Equity Options, Crypto Trades, Trade Register, Contact Heading

Statement Title = "A trade and its terms"
Contact Heading = heading(3, "Settlement enquiries")

# =Statement Title {#introduction}

Alder Street Capital Ltd buys shares, a call option on the same shares, and bitcoin. Its settlements clerk has three tickets to check. Who is on the other side, how much cash is due on each purchase, and what changes if the firm revises its booking fee? All names, trades and prices in this example are fictional.

Booking Fee = £2.50
Expiry Share Price = £48.00

Ticket Fields = ["Ticket", "Instrument", "Trade Date", "Time UTC", "Counterparty", "Trader", "Trade Price", "Netting", "Funding", "Collateral"]
Share Ticket = {"Ticket": "T-101", "Instrument": "Cash equity", "Trade Date": 30 November 2026, "Time UTC": "09:15", "Counterparty": "Cairn Brokerage Ltd", "Trader": "Maya Reed", "Trade Price": £42.00, "Netting": "Gross settlement", "Funding": "GBP cash account", "Collateral": "None agreed"}
Option Ticket = {"Ticket": "T-102", "Instrument": "Equity option", "Trade Date": 30 November 2026, "Time UTC": "09:27", "Counterparty": "Fenwick Markets plc", "Trader": "Eli Shaw", "Trade Price": £1.75, "Netting": "Close-out netting", "Funding": "Premium from GBP cash account", "Collateral": "Bilateral GBP cash CSA"}
Crypto Ticket = {"Ticket": "T-103", "Instrument": "Crypto", "Trade Date": 30 November 2026, "Time UTC": "10:02", "Counterparty": "Beacon Digital Ltd", "Trader": "Maya Reed", "Trade Price": £60,000.00, "Netting": "Gross settlement", "Funding": "Prefunded GBP account", "Collateral": "None agreed"}
Tickets = table(Ticket Fields, [Share Ticket, Option Ticket, Crypto Ticket])

Trades = based on Tickets
    Booking Entity = "Alder Street Capital Ltd"
    Settlement Currency = "GBP"
    Booking Charge = Booking Fee
    Price Basis = "Per unit"
    Payable(Units = 1) = Row.Trade Price * Units + Row.Booking Charge

## The trade blotter

The **booking entity** is =(Trades[1].Booking Entity). All three tickets settle in **=(Trades[1].Settlement Currency)**. The price on each ticket is the agreed price per unit.

Select a ticket to open its trade details.

Trade Blotter = Trades[Ticket, Instrument, Trade Date, Time UTC, Trader, Trade Price |]

show #viewer when "Ticket" is clicked in Trade Blotter, setting Selected Ticket

### Inspect a trade {#viewer}

Choose a ticket to check what was bought. Switch to Settlement to see the payment, the collateral agreement and what ten units would cost under the same terms.

Selected Ticket = "T-102"
Ticket View = "Trade summary"

```tiles
function Ticket Entry(Trade) = [Trade.Ticket, Trade]
function Register Trades(Items) = table(["Ticket", "Details"], map_rows(Items, Ticket Entry))

function Trade Summary(Trade)
    Common = table(["Trade summary", "Details"], [["Ticket", Trade.Ticket], ["Instrument", Trade.Instrument], ["Trade date", Trade.Trade Date], ["Time (UTC)", Trade.Time UTC], ["Trader", Trade.Trader], ["Counterparty", Trade.Counterparty]])
    Market Terms = append(Common, ["Ticker", Trade.Ticker], ["Underlying shares", Trade.Underlying Shares]) if Trade is_a Equity Trades else append(Common, ["Asset", Trade.Asset], ["Quantity", Trade.Quantity]) if Trade is_a Crypto Trades else Common
    return append(Market Terms, ["Strike price", Trade.Strike Price], ["Exercise date", Trade.Exercise Date]) if Trade is_a Equity Options else Market Terms
end

function Settlement(Row) = table(["Settlement", "Details"], [["Ticket", Row.Ticket], ["Booking entity", Row.Booking Entity], ["Counterparty", Row.Counterparty], ["Settlement currency", Row.Settlement Currency], ["Netting", Row.Netting], ["Funding", Row.Funding], ["Collateral", Row.Collateral], ["Price per unit", Row.Trade Price], ["Booking fee", Row.Booking Charge], ["Cash due", Row.Cash Due]])
function Settlement Details(Trade) = append(Settlement(Trade), ["Payable for 10 units", Trade.Payable(10)])
function Show Ticket(Trade, View) = Trade Summary(Trade) if View = "Trade summary" else Settlement Details(Trade) if View = "Settlement" else "Choose Trade summary or Settlement."
```

Trade Register = append(Register Trades(Cash Equities), Register Trades(Equity Options), Register Trades(Crypto Trades))
Matching Trades = Trade Register[| Ticket = Selected Ticket]
Match Count = count(Matching Trades)
Selected Trade = Matching Trades[1].Details if Match Count = 1
Selection Notice = "No trade matches this ticket." if Match Count = 0 else "More than one trade has this ticket. Give each trade a unique ticket number." if Match Count > 1

choice "Ticket" sets Selected Ticket from Trade Register["Ticket"]
radio "View" sets Ticket View from ("Trade summary", "Settlement")

=(Show Ticket(Selected Trade, Ticket View) if Match Count = 1 else Selection Notice)

='''[Value this ticket at market prices](trade-market-view.lmd#valuation) with inputs (Selected Ticket = Selected Ticket, Booking Fee = Booking Fee)''' if Match Count = 1

### Counterparties and settlement agreements {#agreements}

Agreements = Trades[Ticket, Counterparty, Netting, Funding, Collateral |]

show #viewer when a row is clicked in Agreements, setting Selected Ticket from "Ticket"

The option is an over-the-counter contract. Its Credit Support Annex (CSA) sets collateral terms with Fenwick Markets. The other two tickets settle gross under their own agreements.

=Contact Heading

Quote the ticket number when contacting the settlements desk.

## How much cash is due? {#cash}

field "Booking fee per ticket (£)" sets Booking Fee

The firm pays the same booking fee once per purchase. Try changing it from £2.50 to £5.00. Each **Cash Due** amount below rises by £2.50.

Equity Details = table(["Ticket", "Ticker", "Shares"], [["T-101", "FELL", 100], ["T-102", "FELL", 200]])

Equity Trades = based on Trades[| Instrument = "Cash equity" or Instrument = "Equity option"]
    Ticker = Ticker from Equity Details where Ticket = Row.Ticket
    Underlying Shares = Shares from Equity Details where Ticket = Row.Ticket
    Price Basis = "Per share"
    Cash Due = Row.Payable(Row.Underlying Shares)

Cash Equities = based on Equity Trades[| Instrument = "Cash equity"]
    Price Basis = "Purchase price per share"

### Shares

=(Cash Equities[Ticket, Ticker, Underlying Shares, Trade Price, Cash Due |])

Ticket T-101 buys =(Cash Equities[1].Underlying Shares) shares outright. The buyer pays the share price times the number of shares, plus the booking fee.

Option Details = table(["Ticket", "Exercise", "Strike"], [["T-102", 18 December 2026, £45.00]])

Equity Options = based on Equity Trades[| Instrument = "Equity option"]
    Price Basis = "Premium per underlying share"
    Option Right = "Call"
    Exercise Date = Exercise from Option Details where Ticket = Row.Ticket
    Strike Price = Strike from Option Details where Ticket = Row.Ticket
    Exercise Cash = Row.Strike Price * Row.Underlying Shares
    Exercise Value = (Expiry Share Price - Row.Strike Price) * Row.Underlying Shares if Expiry Share Price > Row.Strike Price else £0.00

### Equity option

Ticket T-102 buys a European call on the same ticker. The equity table supplies the ticker, share count and cash calculation. Here the quoted price is the **premium per underlying share**, so Cash Due buys the right to acquire the shares on the exercise date.

=(Equity Options[Ticket, Ticker, Underlying Shares, Trade Price, Cash Due |])

field "FELL share price at expiry (£)" sets Expiry Share Price

On **=(Equity Options[1].Exercise Date)**, the holder may pay **=(Equity Options[1].Exercise Cash)** for =(Equity Options[1].Underlying Shares) shares at **=(Equity Options[1].Strike Price)** each. At the expiry price entered above, the exercise right is worth **=(Equity Options[1].Exercise Value)** before the original premium and fee.

Crypto Details = table(["Ticket", "Asset", "Quantity"], [["T-103", "BTC", 0.025]])

Crypto Trades = based on Trades[| Instrument = "Crypto"]
    Asset = Asset from Crypto Details where Ticket = Row.Ticket
    Quantity = Quantity from Crypto Details where Ticket = Row.Ticket
    Price Basis = "Per coin"
    Cash Due = Row.Payable(Row.Quantity)

### Crypto

=(Crypto Trades[Ticket, Asset, Quantity, Trade Price, Cash Due |])

Ticket T-103 uses a fractional coin quantity. It takes the fee and settlement rules straight from Trades and adds its own asset and quantity.

## Which terms does a ticket carry? {#families}

The formula `Equity Options[1] is_a Equity Trades` asks whether the option row comes from the equity trade table. It does, and that table in turn comes from Trades. The option keeps both sets of terms and sets its Price Basis to **=(Equity Options[1].Price Basis)**.

| Ticket | A trade? | An equity trade? | A share purchase? | A crypto trade? |
| --- | --- | --- | --- | --- |
| T-101 · shares | =Cash Equities[1] is_a Trades | =Cash Equities[1] is_a Equity Trades | =Cash Equities[1] is_a Cash Equities | =Cash Equities[1] is_a Crypto Trades |
| T-102 · option | =Equity Options[1] is_a Trades | =Equity Options[1] is_a Equity Trades | =Equity Options[1] is_a Cash Equities | =Equity Options[1] is_a Crypto Trades |
| T-103 · bitcoin | =Crypto Trades[1] is_a Trades | =Crypto Trades[1] is_a Equity Trades | =Crypto Trades[1] is_a Cash Equities | =Crypto Trades[1] is_a Crypto Trades |

[Compare the desk’s tickets with market prices](trade-market-view.lmd)
