Margin operations

From JoelLewis/finance_skills · View interactive version

Margin operations is an AI agent skill from the GitHub repository JoelLewis/finance_skills. Guide margin lending, margin requirements, and margin call operations for brokerage and advisory accounts. Use when calculating Reg T initial margin or buying power, determining maintenance margin or house requirements, evaluating portfolio margin eligibility under OCC TIMS, generating or resolving

How to use this skill

Skill file

Margin Operations

Core Concepts

Regulation T Initial Margin

The Federal Reserve's Regulation T establishes the initial margin requirement for purchasing securities on credit. Key provisions:

Maintenance Margin

After the initial purchase, ongoing maintenance margin requirements determine the minimum equity the account must maintain:

Portfolio Margin

A risk-based margining methodology that can significantly reduce margin requirements for hedged or diversified portfolios:

Margin Call Types

Multiple types of margin calls can arise, each with distinct triggers, deadlines, and resolution procedures:

Margin Call Procedures

The end-to-end process from call generation through resolution:

Forced Liquidation

When a margin call is not met, the broker-dealer must liquidate positions to bring the account into compliance:

1. Fully paid (non-margin) positions with no tax consequences if available for transfer

2. Positions specifically identified by the client (if communicated in time)

3. Most liquid positions (highest average daily volume, tightest bid-ask spreads)

4. Positions with the lowest unrealized gain or highest unrealized loss (minimizing tax impact where feasible)

5. Concentrated positions contributing most to the margin deficit

6. Least liquid positions as a last resort

Securities-Backed Lines of Credit (SBLOC)

Lending products that use an investment portfolio as collateral, distinct from traditional margin lending:

Margin Risk Management

Ongoing monitoring and management of margin-related risks across the firm and client accounts:

Worked Examples

Three worked examples are in references/examples.md — load for an end-to-end scenario: (1) calculating margin requirements and buying power for a new diversified account, (2) managing a margin call sequence from generation through resolution, (3) evaluating portfolio margin vs Reg T for an active options trader.

Common Pitfalls

Cross-References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.