AGENT SKILL

magnet-path

Render a "Magnet Path" chart for a ticker — past price history on the left, then a forward projection of option gamma pins (magnets) across future expiries on the right, with the gamma-flip trajectory overlaid. Bubble size = pin open interest, green = positive gamma, red = negative gamma. Use when the user asks for a "magnet path", "gamma pins chart", "price vs the pins", "apex evolution chart", "where do the pins pull price", or wants the forward-looking gamma view for a symbol.

License 许可
MIT
最近更新
2026-11-13
Stars
★ 32
Forks
6

01 前言 Front Matter

name
magnet-path
description
Render a "Magnet Path" chart for a ticker — past price history on the left, then a forward projection of option gamma pins (magnets) across future expiries on the right, with the gamma-flip trajectory overlaid. Bubble size = pin open interest, green = positive gamma, red = negative gamma. Use when the user asks for a "magnet path", "gamma pins chart", "price vs the pins", "apex evolution chart", "where do the pins pull price", or wants the forward-looking gamma view for a symbol.

02 资源文件 1

03 SKILL.md 正文

magnet-path

Forward-looking companion to a GEX snapshot. Where a gamma-wall chart shows the pins for today, this projects the magnet (the strike price pulls toward) across the next several expiries, so you can see the path price is being pulled along.

Run

python scripts/magnet_path.py SYMBOL [--out path.png] [--days 30] [--max-expiries 5]
  • --days — days of price history on the left (default 30)
  • --max-expiries — forward expiries to plot (default 5)
  • --out — output PNG path (default <symbol>_magnet.png)

Prints the output path on success.

Data

TraderDaddy Pro agent API. Auth token is the raw single-line contents of .env_agent_api (walks up from CWD to the mphinance repo, or MPHINANCE_ROOT, else /home/mph/mphinance/.env_agent_api). Requires a browser User-Agent.

  • Price line: /api/agent/ticker/{SYM}/chart-data?days=N
  • Forward pins: /api/agent/gex/{SYM}/apex/evolution?maxExpiries=M → spot, gammaFlipTrajectory[], rows[{date, dte, magnet, regime, magnetOI}]

How to read it

  • Magnet (green/red bubble) = the strike price gets pulled toward at that expiry. Bubble size and glow scale with open interest = how much conviction sits on that pin.
  • Green = positive gamma regime (dealers dampen moves, price gets pinned). Red = negative gamma (dealers feed the move, volatility expands).
  • Gamma flip (orange dotted) = the price where dealers switch from long to short gamma. Above the flip, moves get dampened; below it, they accelerate.
  • The key read: when the magnet lands on the gamma flip at the same expiry, that price is the fulcrum — the most unstable, most magnetic level for that week. A magnet below spot in a negative regime = downside pull.

Example

python scripts/magnet_path.py SLB — SLB's path pulls up toward the $48 pin near-term, sags to a negative-gamma $45 magnet that meets the flip on the 8/07 expiry (the re-load fulcrum), then a heavy positive $52.50 monthly magnet into 8/21 where the biggest OI sits.

04 同仓库更多 Skills

mphinance
mphinance/alpha-skills

order-lifecycle-safety

Idempotency, reconcile-before-retry, audit-before-forward and environment-proof preflight rules for any code or agent that places broker orders. Use when building or reviewing an order path, handling a timeout or unknown order outcome, adding client_order_id, deciding whether a retry is safe, or confirming paper vs live before sending an order.

★ 32
mphinance
mphinance/alpha-skills

order-lifecycle-safety

Idempotency, reconcile-before-retry, audit-before-forward and environment-proof preflight rules for any code or agent that places broker orders. Use when building or reviewing an order path, handling a timeout or unknown order outcome, adding client_order_id, deciding whether a retry is safe, or confirming paper vs live before sending an order.

★ 32
mphinance
mphinance/alpha-skills

write-a-skill

Create new agent skills with proper structure, progressive disclosure, and bundled resources. Use when user wants to create, write, or build a new skill.

★ 32
mphinance
mphinance/alpha-skills

wireframe-sketch

A hand-drawn wireframe exploration — graph-paper background, marker / pencil tone, multiple tab labels for variants, sticky-note annotations, scribbled chart placeholders, hatched fills. Reads like a designer's whiteboard before any pixels are committed. Use when the brief asks for "wireframe", "sketch wireframe", "hand-drawn", "lo-fi", "whiteboard", "草稿", or "手绘原型".

★ 32
mphinance
mphinance/alpha-skills

weekly-update

Single-file horizontal-swipe slide deck for a weekly team update — shipped, in flight, blocked, metrics, asks. 6–8 slides. Use when the brief mentions "weekly update", "team update slides", "weekly status", "周报演示".

★ 32
mphinance
mphinance/alpha-skills

webull-openapi

Trade stocks, options, futures, crypto, and event contracts on Webull. Query real-time and historical market data. Manage accounts and positions. Supports US, HK, JP, SG, TH, MY, UK, MX, BR, EU, ZA, and AU regions with configurable risk controls.

★ 32