Logo Conflict Of Interest Disclosure For Prop Vs Client Flow

Conflict Of Interest Disclosure For Prop Vs Client Flow

Cộng đồng
HimanshuJ16
conflict-of-interest-disclosure-for-prop-vs-client-flow

Dùng khi một công ty môi giới–tự doanh giao dịch cổ phiếu Mỹ bằng tài khoản tự doanh trong lúc vẫn có lệnh của khách hàng chưa được thực hiện, theo quy tắc FINRA 5320 Manning: rào cản thông tin không biết lệnh, sự đồng ý mặc định nếu không phản đối và mức cải thiện giá tối thiểu.

Add to TypingMind

Tổng quan

Nhà phát hànhHimanshuJ16
Kho mãAlgo-Trading-Skills
Tên kỹ năngconflict-of-interest-disclosure-for-prop-vs-client-flow
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 Conflict Of Interest Disclosure For Prop Vs Client Flow 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/conflict-of-interest-disclosure-for-prop-vs-client-flow
  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/conflict-of-interest-disclosure-for-prop-vs-client-flow .claude/skills/conflict-of-interest-disclosure-for-prop-vs-client-flow
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 Conflict Of Interest Disclosure For Prop Vs Client Flow 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 Conflict Of Interest Disclosure For Prop Vs Client Flow 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 Conflict Of Interest Disclosure For Prop Vs Client Flow 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 in broker-dealer architectures or multi-desk firms that run proprietary trading alongside customer order handling in US equities. FINRA Rule 5320 prohibits a member that holds an unexecuted customer order from trading the same security on the same side of the market for its own account at a price that would satisfy that customer order, unless it immediately thereafter fills the customer up to size at the same or better price — or unless one of the Rule's supplementary-material exceptions applies.

The direction of that test is the single most-often inverted piece of logic in Manning implementations:

Held customer orderA proprietary trade "satisfies" it atPermitted proprietary prices
BUY limit $150.00a purchase at $150.00 or lower$150.01 or higher (limit + Rule 5320.06 increment)
SELL limit $150.00a sale at $150.00 or higher$149.99 or lower (limit − Rule 5320.06 increment)

If your gate blocks the firm from paying up over a customer buy limit, it has the rule backwards: it is permitting the actual front-running and blocking the harmless trades.

When NOT to Use

  • Non-US-equity instruments. Rule 5320 applies to NMS stocks and OTC Equity Securities. It does not reach options, futures or fixed income.
  • Non-US jurisdictions. The EU/UK analogue is a misuse-of-information prohibition with different mechanics and no share/value opt-out (Commission Delegated Regulation (EU) 2017/565 Art. 67; UK COBS 11.3.5A R). Do not port the 10,000-share threshold outside the US — it has no counterpart there. See mifid-ii-algo-trading-compliance-eu.
  • As the firm's whole Rule 5320 programme. This engine covers the price test and the .01/.02/.05/.06 exceptions. It does not implement the riskless-principal (.03) or ISO (.04) exceptions, does not perform the customer fill the Rule requires when the firm does trade at a satisfying price, and does not discharge the written order-handling procedures required by Rule 5320.07.
  • As market-abuse surveillance. Trading ahead of a third party's order flow is a different problem — see wash-trade-and-spoofing-self-detection and eu-market-abuse-regulation-mar-surveillance.

Prerequisites

  • Order capacity tagging: principal vs. agency, carried to the venue on FIX OrderCapacity(528) (with OrderRestrictions(529)). Rule80A(47) is deprecated as of FIX 4.3 — do not build new integrations on it.
  • A snapshot of the firm's unexecuted customer orders in the security, with limit price, size and the barrier/desk that holds them.
  • Per-customer reference data: FINRA Rule 4512(c) institutional-account status, whether the Rule 5320.01 written disclosure was given at account opening and annually thereafter, and whether the customer opted in to Rule 5320 protection.
  • An attested inventory of which desks sit behind an effective information barrier — a distinct info_barrier_id string is a label, not a control.
  • Optionally, the current inside spread, needed for the Rule 5320.06 increment on sub-$1.00 and OTC securities.

Workflow

  1. Order Ingestion: Build a PropOrder with symbol, side, quantity, price, info_barrier_id, security_type (NMS_STOCK / OTC_EQUITY), trading_unit_type and barriers_effective.
  2. Gate the Order: Call evaluate_prop_order and branch on is_approved, or call enforce_prop_order, which raises Rule5320ViolationError so a missing branch cannot leak an order to the market.
  3. Fail Closed on Bad Input: An unrecognised side, a non-finite or non-positive price, a non-positive quantity, or a client order that cannot be parsed returns INVALID_ORDER_PARAMETERS and is not approved. A compliance gate that cannot evaluate an order must not pass it.
  4. Price Test with Minimum Price Improvement: Every same-symbol, same-side customer order is compared using the direction table above, widened by the Rule 5320.06 increment: $0.01 for NMS stocks at or above $1.00, and the lesser of the tier increment or half the inside spread otherwise. A sub-penny "improvement" over a customer limit does not clear the Rule.
  5. Exception Audit, per client order — and note that these are per order, not per audit:
    • Odd lot (.05): a customer order for less than one round lot does not attach the obligation.
    • No-knowledge (.02): distinct, effective information barriers between the desk holding the customer order and the proprietary desk. For OTC Equity Securities this exception is not available to the market-making desk — only to a non-market-making unit.
    • Large order / institutional, on negative consent (.01): available where the account is institutional under Rule 4512(c), or the order is 10,000 shares or more and at least $100,000 in value — both, not either. It requires the written disclosure to have been given, and is lost the moment the customer opts in.
  6. Evaluate Every Order Before Approving: An exception that covers one resting customer order says nothing about the next one. The engine approves only when every matching order is non-conflicting or excepted, and reports all conflicts in result.conflicts.
  7. Violation Resolution: Block the proprietary order, or execute the customer order up to its size at the same or better price contemporaneously, as Rule 5320(a) requires. Persist the full ConflictAuditResult for supervisory review.

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

Common Pitfalls

  • Inverting the Price Test: Treating a proprietary buy above a customer's buy limit as the conflict. The violation is buying at or below it — that purchase is the fill the customer's resting order should have received.
  • Approving on the First Exception Found: Returning APPROVED as soon as one resting customer order qualifies for the no-knowledge exception, without checking the rest of the book. The order behind it, held by the same desk, is then front-run silently.
  • Failing Open on Unparseable Input: A side string of "buy" or "B" matching neither branch of a price test and falling through to "no conflict". Normalise, then reject what will not normalise.
  • Reading the .01 Exception as an Opt-Out Flag: Rule 5320.01 works by negative consent — the firm must have disclosed and given the customer a meaningful opportunity to opt in. Absence of an opt-in is not the same as the presence of a valid disclosure; model both facts.
  • Loosening the Large-Order Threshold to OR: 10,000 shares or more unless less than $100,000 in value means both conditions. A 10,000-share order in a $5 stock is not a large order for this purpose.
  • Blanket No-Knowledge for OTC Market Making: Rule 5320.02 withholds the exception from the market-making desk in OTC Equity Securities. An NMS-stock configuration silently applied to OTC flow over-approves.
  • Sub-Penny Price Improvement: Buying at $150.001 over a $150.00 customer buy limit does not satisfy the order, but it does not clear the Rule 5320.06 increment either.
  • Sharing Order-Book State Across Desks: Letting a proprietary algorithm query the firm's customer order book at all, then claiming the no-knowledge exception. The exception rests on the barrier working, not on it being declared.
  • Binary Float Price Comparison: Rule 5320 turns on exact equality with a customer limit price. Compare in Decimal; the engine converts floats through str() for that reason.
  • Un-tagged Capacity: Sending orders without OrderCapacity(528), leaving the audit trail unable to distinguish principal from agency flow.

Verification

  • Instantiate PropVsClientConflictEngine with a pending 500-share retail CLIENT buy limit for AAPL at $150.00 on DESK_A. Submit a PROP buy at $150.00 from DESK_A: expect FINRA_RULE_5320_TRADING_AHEAD. Submit a PROP buy at $140.00: expect the same violation. Submit at $150.005: still blocked, because the improvement is below the Rule 5320.06 increment. Submit at $150.01: approved, with no exception recorded — clearing the increment means there was no conflict to except.
  • Set distinct info_barrier_id values and confirm NO_KNOWLEDGE_BARRIER; then set security_type=OTC_EQUITY with trading_unit_type=MARKET_MAKING and confirm the exception is withdrawn.
  • Put two resting client orders in the book, one behind a barrier and one on the proprietary desk, and confirm the order is still blocked.
  • Submit a prop order with side="B" and with a NaN price; confirm both are rejected rather than passed.
  • Run python -m unittest discover -s skills/conflict-of-interest-disclosure-for-prop-vs-client-flow/scripts and confirm all tests pass.

Related Skills

  • best-execution-record-keeping-global
  • mifid-ii-algo-trading-compliance-eu
  • sec-rule-15c3-5-risk-controls-us
  • wash-trade-and-spoofing-self-detection

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 Conflict Of Interest Disclosure For Prop Vs Client Flow làm được gì?

Dùng khi một công ty môi giới–tự doanh giao dịch cổ phiếu Mỹ bằng tài khoản tự doanh trong lúc vẫn có lệnh của khách hàng chưa được thực hiện, theo quy tắc FINRA 5320 Manning: rào cản thông tin không biết lệnh, sự đồng ý mặc định nếu không phản đối và mức cải thiện giá tối thiểu.

Vì sao nên dùng Conflict Of Interest Disclosure For Prop Vs Client Flow 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. Conflict Of Interest Disclosure For Prop Vs Client Flow 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 Conflict Of Interest Disclosure For Prop Vs Client Flow 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/conflict-of-interest-disclosure-for-prop-vs-client-flow. 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 Conflict Of Interest Disclosure For Prop Vs Client Flow?

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 Conflict Of Interest Disclosure For Prop Vs Client Flow 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 Conflict Of Interest Disclosure For Prop Vs Client Flow 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 Conflict Of Interest Disclosure For Prop Vs Client Flow 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 👇