Logo Cboe Options Exchange Api Integration

Cboe Options Exchange Api Integration

Cộng đồng
HimanshuJ16
cboe-options-exchange-api-integration

Dùng khi giao dịch chiến lược quyền chọn nhiều chân trên các sàn quyền chọn Cboe qua Titanium FIX: tạo lệnh New Order Multileg, chuẩn hóa tỷ lệ các chân và tham gia Complex Order Auction. Lệnh một chân dùng New Order Single.

Add to TypingMind

Tổng quan

Nhà phát hànhHimanshuJ16
Kho mãAlgo-Trading-Skills
Tên kỹ năngcboe-options-exchange-api-integration
Sao
50
Bản fork
7
Tệp đi kèm
5
Giấy phépApache-2.0
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 5 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được HimanshuJ16 công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Cboe Options Exchange Api Integration trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/HimanshuJ16/Algo-Trading-Skills/tree/main/skills/cboe-options-exchange-api-integration
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/HimanshuJ16/Algo-Trading-Skills.git /tmp/Algo-Trading-Skills
mkdir -p .claude/skills
cp -r /tmp/Algo-Trading-Skills/skills/cboe-options-exchange-api-integration .claude/skills/cboe-options-exchange-api-integration
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Cboe Options Exchange Api Integration trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Cboe Options Exchange Api Integration ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Cboe Options Exchange Api Integration với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

When to Use

Use this skill when integrating directly with Cboe Options Exchanges (Cboe Options Exchange [C1], C2 Options Exchange, Cboe BZX Options, Cboe EDGX Options) over Cboe Titanium FIX to trade multi-leg option strategies. Specifically:

  • Construct and serialize New Order Multileg (MsgType=AB) messages with the NoLegs (555) repeating group.
  • Eliminate legging risk by routing spreads, straddles, strangles, condors, butterflies, collars and ratio spreads to the Complex Order Book (COB) as one package that executes within a net price and ratio.
  • Control Complex Order Auction (COA) exposure through RoutingInst (9303).
  • Execute stock-option combination orders (buy-writes, collars) on C1 and EDGX, including the Cboe Rule 5.33 conforming-ratio test.
  • Reconcile a complex fill from the package report plus the per-leg reports Cboe sends alongside it.

When NOT to Use

  • Single-Leg Option Orders: use MsgType=D (New Order Single). Cboe requires at least 2 legs on MsgType=AB.
  • AIM / paired auctions: AIM is entered through New Order Cross Multileg (C1 and EDGX only), not by tagging a standard complex order. No ExecInst value converts an ordinary order into an AIM order.
  • Short-form COB requests: this skill's helper emits the long form only. The short form (pricing against an already-listed COB strategy symbol via Symbol (55) + Side (54)) has a side-dependent net-price sign and needs its own builder.
  • BOEv3 wire encoding: the helper implements FIX only; take binary layouts from the Cboe BOE v3 specification.
  • Venues Lacking Native Combo Books: use algorithmic synthetic legging with hedge monitoring instead (see calendar-spread-and-multi-leg-order-atomicity).
  • OTC / bilateral options not listed or cleared through the OCC.

Prerequisites

  • Active Cboe Titanium FIX order-entry session with market access credentials and a valid EFID.
  • FIX engine that serializes and parses repeating groups; it supplies BeginString (8), BodyLength (9) and CheckSum (10).
  • OCC clearing parameters for LegPositionEffect (564) and, where applicable, CMTA fields.
  • Pre-trade risk controls per SEC Rule 15c3-5.
  • For stock-option orders: C1 or EDGX access, plus an equity matching destination (EquityExDestination (22016)).

Workflow

  1. Choose the request form. Long form (legs in the 555 group) or short form (a listed COB strategy symbol in Symbol (55) with Side (54)). Do not mix them: sending the underlying root in Symbol (55) alongside a leg group is neither form. The rest of this workflow is the long form.
  2. Define legs. Each OptionLeg needs LegSymbol (600), LegRatioQty (623), LegSide (624) and, unless OrderCapacity (47) is M/N, LegPositionEffect (564). When 600 is an OSI root, LegCFICode (608), LegMaturityDate (611) and LegStrikePrice (612) are required too. Mark the equity leg with 608=E — there is no LegSecurityType (609) in this message.
  3. Normalize ratios (CRITICAL). Reduce all leg ratios by their GCD and multiply OrderQty (38) by the same GCD, so net exposure is unchanged. Cboe rejects unreduced ratios outright.
  4. Re-validate after scaling, not before. GCD scaling is a multiplication: OrderQty (38) must still be ≤ 999,999 afterwards. On C2 and EDGX the reduced smallest-to-largest leg ratio must also be no wider than 1:3.
  5. Stock-option conformance (Cboe Rule 5.33). Compute the ratio from the smallest option leg against the stock leg and require ≤ 8:1. Using the sum of all option legs over-rejects legitimate collars. A non-conforming order is not invalid — it receives different priority and auction handling, so decide deliberately.
  6. Price the package. Long form: positive = net debit, negative = net credit, 0 = even. Whole pennies for option-only spreads; up to 4 decimals only with a stock leg or FLEX. Check the class increment separately — SPX/SPXW non-box/roll spreads trade in $0.05, not $0.01.
  7. Set routing. RoutingInst (9303): first character B/P/D, second character S (expose via COA) or L (suppress). Leave unset to accept Cboe's defaults (S for non-IOC, L for IOC). PS is rejected. ExecInst (18) has exactly one documented value here — G (All or None) — and plays no part in auction selection.
  8. Serialize. 35=AB with 167=MLEG and 47 (both required), then 555=N followed by leg groups that each start with LegRefID (654), then 38, 40, 44, 9303, 47, 59.
  9. Reconcile the fill. Branch on MultilegReportingType (442): 3 is the package fill, 2 is a per-leg fill carrying LegRefID (654), LastPx (31) and LastShares (32) at the top level. Join by LegRefID and assert leg_qty == package_qty × reduced_ratio. A breach is a position-integrity incident, not a retry trigger.

Full procedure: see references/workflows.md. Standards reference: see references/standards.md. Printable pre-flight checklist: see assets/checklist.md.

Common Pitfalls

  • Selecting COA through ExecInst (18): COA exposure lives in the second character of RoutingInst (9303) (S/L). ExecInst values borrowed from base FIX are not Cboe values — sending 18=A transmits "No cross", not "COA eligible".
  • Emitting LegSecurityType (609): it is not a field of Cboe's New Order Multileg. Leg type is LegCFICode (608) = OC / OP / E.
  • Starting the leg group on LegSymbol (600): Cboe documents LegRefID (654) as "the required tag to start each repeated group". A group opened on another tag is not a valid repeating group, and 654 is also the only key that maps leg fills back to legs.
  • Expecting LegLastPx (637) / LegLastQty (638): they do not exist in the Cboe message set. A parser that looks for them silently reports every leg as filled at 0.00 for 0 contracts.
  • Applying the debit-positive rule to a short-form Sell order: under the short form, a positive Price (44) on a Sell order is a credit. Inverting it crosses the market or is rejected off-market.
  • Validating OrderQty before GCD scaling: 200,000 packages of a 10:20 spread normalizes to 2,000,000 contracts and breaches the documented 999,999 ceiling only after normalization.
  • Summing option legs for the 8:1 test: Cboe's ratio check uses the smallest option leg. Summing rejects conforming collars and buy-writes.
  • Assuming FOK is available: TimeInForce (59) on this message is 0, 1, 2, 3 or 6 — FOK is not documented.
  • Assuming pennies everywhere: SPX/SPXW non-box/roll complex orders price in $0.05 increments.
  • Serializing prices from binary floats: format from Decimal; 0.1 + 0.2 reaches the wire as 0.30000000000000004.
  • Retrying on a request timeout: a lost response does not mean the order was not accepted. Query order state or cancel the original ClOrdId; Cboe enforces ClOrdId uniqueness only among live orders, so it is not a duplicate guard once an order is no longer live.

Verification

  • Run the test suite: python -m unittest discover -s skills/cboe-options-exchange-api-integration/scripts.
  • Validate structure: python tools/validate_skills.py --skill cboe-options-exchange-api-integration.
  • Confirm a generated debit spread contains 35=AB, 167=MLEG, 47, 555=2, and that the text following 555=2 begins with 654=.
  • Confirm 609= and 18= never appear in generated output, and that 55= / 54= are absent from long-form output.
  • Confirm a 10:20 ratio spread reduces to 1:2 with OrderQty scaled ×10, and that a scaled quantity above 999,999 is rejected.
  • Confirm reconcile_leg_fills raises when a 442=2 leg quantity does not equal package_qty × reduced_ratio.

Limitations

  • Class-level net price increments (e.g. $0.05 for SPX/SPXW) are not enforced — only the whole-penny / 4-decimal precision rule from the FIX specification is.
  • FLEX-specific fields (LegPrice (566), LegDelta (22024), FLEXAuctionDuration (21010)) and floor routing (FloorRoutingInst (22303)) are documented in references/standards.md but not implemented.
  • Cboe's field table marks Price (44) as required on New Order Multileg without stating an exception for OrdType=1; the helper omits 44 on market orders. Confirm market complex-order handling with the Cboe Trade Desk before enabling it.

Related Skills

  • calendar-spread-and-multi-leg-order-atomicity
  • fix-protocol-session-management-across-venues
  • multi-leg-strategy-margin-optimization
  • order-placement-idempotency

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Cboe Options Exchange Api Integration làm được gì?

Dùng khi giao dịch chiến lược quyền chọn nhiều chân trên các sàn quyền chọn Cboe qua Titanium FIX: tạo lệnh New Order Multileg, chuẩn hóa tỷ lệ các chân và tham gia Complex Order Auction. Lệnh một chân dùng New Order Single.

Vì sao nên dùng Cboe Options Exchange Api Integration trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Cboe Options Exchange Api Integration là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Cboe Options Exchange Api Integration trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/HimanshuJ16/Algo-Trading-Skills/tree/main/skills/cboe-options-exchange-api-integration. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Cboe Options Exchange Api Integration?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Cboe Options Exchange Api Integration với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Cboe Options Exchange Api Integration với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Cboe Options Exchange Api Integration có miễn phí không?

Có. Kỹ năng này được HimanshuJ16 phát hành trên GitHub theo giấy phép Apache-2.0. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇