options-lean
Export fixed option legs to a local LEAN backtest bundle or import completed tagged results. Use when handing a plan to a historical engine, not modeled-premium strategy backtests.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-14
- Stars
- ★ 1.6k
- Forks
- 491
01 前言 Front Matter
- name
- options-lean
- description
- Export fixed option legs to a local LEAN backtest bundle or import completed tagged results. Use when handing a plan to a historical engine, not modeled-premium strategy backtests.
03 SKILL.md 正文
Options Lean
Use option_lean with action export or import. Export requires plan, start, end, exercise_style, multiplier and data_mode. MCP writes a new bundle under the desk artifact directory. The CLI also accepts an explicit destination.
optiondesk lean export --plan PLAN.json --destination NEW_DIRECTORY --start 2016-01-04 --end 2016-01-06 --exercise-style american --multiplier 100 --data-mode user-licensed
optiondesk lean import --result RESULT.json --bundle NEW_DIRECTORY/plan.json
Replace the example paths and dates with the actual plan and test interval. Only single-expiry American US equity option legs with integer contract quantities and multiplier 100 are supported. Stock legs, time spreads and degraded plans are refused. Model premiums do not become fill prices.
The export provides main.py and plan.json; a local LEAN runtime, configuration and permitted historical data are separate requirements. The template permits backtests only, enters at the first common quote slice and liquidates on the final date using separate orders. It does not validate point-in-time selection, atomic spread fills or historical data coverage.
Import requires completed status, fully filled orders, matching source-plan tags and data mode. Report degraded status first: passing those checks does not validate data coverage or financial model suitability. Preserve LEAN statistic units and distinguish synthetic fixtures from historical results. Assignment-generated orders without the plan tag are refused; do not label that path validated.
Research software, not investment advice. See DISCLAIMER.md.
04 同仓库更多 Skills
worktable-review-with-annotations
Create, inspect, reply to, update, or resolve situated Worktable annotations. Use when feedback belongs to a Doc section, block, text range, or HTML Doc, or when the user asks to address existing review feedback and coordinate a requested artifact edit.
worktable-find-and-synthesize-context
Find, assess, and synthesize context from Worktable Docs and Records. Use when the user asks what a workspace contains, wants workspace-backed research, needs current facts reconciled across artifacts, or requests a cited synthesis without changing workspace state.
worktable-create-or-update-docs
Create, edit, rename, or maintain narrative Worktable Docs. Use for plans, decisions, briefs, notes, research syntheses, and other durable prose when the user requests a new artifact or a safe update to an existing one.
worktable-create-or-manage-records
Organize repeated structured information as durable Worktable Records. Use for research datasets, inventories, directories, pipelines, trackers, and other collections whose items need identity, fields, filtering, links, validation, or individual updates.
worktable-create-or-manage-interactive-html
Create or improve durable visual and interactive artifacts in Worktable. Use for dashboards, trackers, calculators, mini apps, slide presentations, and other requests that benefit from a polished HTML Doc.
worktable-collaborate-threads
Read, answer, and hand off messages through durable Worktable threads with users or other authenticated participants. Use when the user asks to check addressed messages, reply to a participant, continue a thread, request another agent's help, wait briefly for a response, or watch for comments and messages sent to the agent.