S&P 5005,983+0.49%
NASDAQ21,220+0.47%
Russell2,187-0.64%
VIX18.20+0.7
10Y Yield4.31%+3.0bp
Gold2,936+0.62%
Crude70.40-0.98%
Bitcoin95,800-0.42%
S&P 5005,983+0.49%
NASDAQ21,220+0.47%
Russell2,187-0.64%
VIX18.20+0.7
10Y Yield4.31%+3.0bp
Gold2,936+0.62%
Crude70.40-0.98%
Bitcoin95,800-0.42%
simulated

Broker Margin Optimizer

Compare margin requirements and all-in funding costs across prime brokers for any equity portfolio.


Overview

The Broker Margin Optimizer compares portfolio margin requirements and daily carry costs across 8 prime brokers. It combines margin methodology differences with per-broker funding tier schedules to produce a true all-in cost comparison at the position level.

The optimizer answers a simple question: which prime broker is cheapest for my specific portfolio?

The answer depends on the portfolio's characteristics — concentration, volatility, liquidity, market cap mix, and hedging profile — because each broker weights these factors differently.


Brokers

#BrokerTypeKey Sensitivity
1Prime HouseModeled (4-scenario stress)Baseline — 200 DMA, cap buckets, vol shock
2Inactive BrokerPublishedConcentration (top-2 singleton), small-cap shift
3TD SchwabPublishedExpected Price Range (EPR), Point of No Return (PNR)
4Clean StreetModeled (dual Rule/Risk)Basis credits, crash/surge stress
5Goldmin SochsEstimatedTightest on concentration + volatility
6PJ GormanEstimatedRewards hedging, penalizes vol + small-cap
7Stanly GordinEstimatedHarshest on illiquidity + small-cap
8MiMac SAEstimated (extreme stress)3 largest longs to zero, largest short +300%

Brokers 1-4 use published or modeled methodologies. Brokers 5-7 use a parameterized framework with portfolio-aware adjustments — their margin parameters shift dynamically based on the portfolio's risk profile.


Portfolio-Aware Adjustments

The estimated brokers start from a base parameterized configuration and then adjust key parameters based on the portfolio's computed profile:

Goldmin Sochs

PJ Gorman

Stanly Gordin

These adjustments ensure that rank order genuinely changes with different portfolio types:


Portfolio Profile Metrics

The optimizer computes a portfolio profile used to drive broker adjustments and displayed in the Portfolio Profile card:

MetricDefinitionImpact
Issuer HHIsum(w_i^2) * 10,000 where w_i = |mv_i| / grossMVConcentration charges
Sector HHISame formula, grouped by sectorSector diversification
Weighted Avg VolMV-weighted annual volatility (decimal)Scan range widening
Avg Days to Liq.avg(shares / avgDailyVolume) per positionLiquidity surcharges
Net / Gross|netMV| / grossMVNetting benefit
Small-Cap %% of gross MV in market cap below $2BSmall-cap premiums

HHI Interpretation


Carry Cost Model

The daily carry cost has three components:

1. Margin Capital Cost

marginCostDaily = marginRequirement * costOfCapitalRate / 365

The fund's opportunity cost for posting margin equity. The cost of capital rate is set by the user (default 8%, range 5-35%).

2. Debit Cost (Tiered)

debitCostDaily = sum(positionMV * tierDebitRate / 365)  for each long position

The prime broker's financing charge on long positions. The rate is expressed as a spread to Fed Funds Effective and varies by funding tier.

3. Short Rebate (Tiered)

shortRebateDaily = sum(|positionMV| * tierRebateRate / 365)  for each short position

Interest rebated on short sale proceeds. Also expressed as a spread to Fed Funds and varies by funding tier.

Net daily carry cost = margin cost + debit cost - short rebate


Funding Tier Schedules

Each broker has its own funding waterfall. High-quality assets receive the base rate; lower-quality assets (small-cap, low-priced, hard-to-borrow) pay a premium.

Default Schedules

BrokerTiersTier 1Tier 2Tier 3Tier 4
Prime House2BaseBase + 100bp
Inactive Broker3BaseBase + 75bpBase + 200bp
TD Schwab2BaseBase + 125bp
Clean Street3BaseBase x 1.5Base x 3.0
Goldmin Sochs4BaseBase x 1.5Base x 2.0Base x 5.0
PJ Gorman4BaseBase x 1.5Base x 2.0Base x 5.0
Stanly Gordin3BaseBase x 1.75Base x 3.0

Tier Formulas

Each tier uses one of two formulas:

The rebate side mirrors debit: higher tiers receive less rebate (lower multiplier or negative basis point add-on).

Tier Assignment

Tiers are auto-assigned by position weight when generating portfolios, and can be manually overridden in the editable portfolio grid. CSV uploads support an optional Tier column (0-based index).


Position Transfer Analysis

The Transfer Analysis section compares per-position margin costs between any two selected brokers. For each position:

marginDelta = marginReq_B - marginReq_A
dailyCostDelta = marginDelta * costOfCapitalRate / 365

The default selection is the two brokers with the lowest total margin requirements.


Editable Portfolio Grid

The portfolio grid supports full editing after generation or upload:

MV and row changes require a re-run because they affect margin calculations (API call). Tier changes only affect carry cost (client-side computation) and update instantly.


Rate Inputs

InputRangeDefaultDescription
Cost of Capital5% - 35%8%Fund's opportunity cost for posting margin
Debit SpreadFFE + 0bp to FFE + 250bpFFE + 150bpPrime broker financing rate on longs
Short Rebate SpreadFFE - 250bp to FFE + 0bpFFE - 50bpRebate on short sale proceeds

Per-broker overrides are available for debit rate and short rebate via the "Show Per-Broker Overrides" toggle.


Data Sources


Limitations