Логотип Best Execution Record Keeping Global

Best Execution Record Keeping Global

Сообщество
HimanshuJ16
best-execution-record-keeping-global

Используйте, когда качество исполнения нужно проверять относительно эталона, сохраняя каждое решение при проверке в виде защищённых от незаметного изменения доказательств в соответствии со статьёй 27 MiFID II и правилом 5310 FINRA. Этот инструмент выявляет отклонения, но не подтверждает, что наилучшее исполнение было достигнуто.

Add to TypingMind

Обзор

ИздательHimanshuJ16
РепозиторийAlgo-Trading-Skills
Название навыкаbest-execution-record-keeping-global
Звёзды
50
Форки
7
Файлы в комплекте
5
ЛицензияApache-2.0
Ссылки
  • Инструкции в формате Markdown

    Модель загружает файл SKILL.md по мере необходимости, поэтому токены расходуются только при подходящем запросе.

  • Работает с любой большой языковой моделью

    Навыки ИИ — это обычный Markdown, а не код для конкретного поставщика, поэтому они работают с GPT, Claude, Gemini, Grok и локальными моделями.

  • Файлы в комплекте: 5

    Скрипты, шаблоны и справочные материалы, которые модель может читать во время работы. Файлы доступны только для чтения и никогда не выполняются.

  • Открытый исходный код

    Издатель навыка на GitHub — HimanshuJ16. Перед установкой изучите исходные материалы.

Установка

Установите навык ИИ Best Execution Record Keeping Global в TypingMind, чтобы использовать его с любой LLM, или добавьте его в другой агент, который умеет читать SKILL.md.

1

Установка в TypingMind

TypingMind устанавливает навык прямо из его папки на GitHub: читает SKILL.md, собирает файлы ресурсов и сохраняет результат локально.

  1. Откройте приложение и перейдите в раздел «Плагины → Навыки».
  2. Выберите «Установить из GitHub».
  3. Вставьте указанную ниже ссылку на папку навыка и подтвердите установку.
    https://github.com/HimanshuJ16/Algo-Trading-Skills/tree/main/skills/best-execution-record-keeping-global
  4. Включите навык в каждом чате, где хотите его использовать.
Плагины → Навыки → Добавить навык → По ссылке GitHub, затем вставьте ссылку на папку и нажмите «Продолжить».
2

Установка в другом агенте

Любой агент с поддержкой формата Agent Skills может использовать этот навык — скопируйте папку в каталог навыков этого агента.

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/best-execution-record-keeping-global .claude/skills/best-execution-record-keeping-global
После копирования перезапустите Claude Code, чтобы загрузить новый навык.

Использование в TypingMind

Включите навык Best Execution Record Keeping Global в любом чате TypingMind, и дальше модель всё сделает сама. Его название и описание хранятся в системном промпте, а при появлении подходящего запроса модель сама загружает полные инструкции. Вам не нужно вызывать навык вручную, и до фактического использования он не расходует токены.

Модель сама загружает навык Best Execution Record Keeping Global, как только появляется подходящий для него запрос.

Работает с любой моделью ИИ

Навыки ИИ — это обычные инструкции в Markdown, а не код для конкретного поставщика, поэтому навык Best Execution Record Keeping Global не привязан к модели, для которой он был создан. Установите его один раз в TypingMind и используйте с GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama или локальной моделью, которую запускаете самостоятельно, — со своими ключами API.

  • Загружается только при необходимости

    Системный промпт содержит только название и описание. Инструкции загружаются при первом подходящем запросе, поэтому неиспользуемый навык не расходует токены.

  • Меняйте модели прямо в чате

    Навык состоит из инструкций, а не кода, поэтому смена модели не нарушает его работу: новая модель читает тот же файл SKILL.md.

Инструкции навыка

Это содержимое файла SKILL.md, которое загружает модель. Прочитайте его перед установкой: навык — это инструкции, которым будет следовать ваша модель.

When to Use

Use this skill when capturing trade executions and you need (a) an execution-quality screen that flags outliers against a benchmark, and (b) a tamper-evident record of every trade and every screening decision, retained as evidence.

BestExecutionRecordKeepingGlobalEngine in scripts/best_execution_record_keeping_global.py screens one record at a time, accumulates every exception it finds, and appends the record plus verdict to a hash-chained audit log that verify_audit_log() can re-check.

When NOT to Use

  • As a determination that best execution was achieved. is_compliant=True means "nothing flagged by this screen". Best execution under MiFID II Article 27(1) and FINRA Rule 5310 is a multi-factor, process-based obligation weighing price, costs, speed, likelihood of execution and settlement, size, and nature. A slippage threshold tests one factor. Never report a green flag as evidence of compliance.
  • As your archive. export_audit_log() writes a JSON file. Retention obligations differ by regime (see references/standards.md) and no plain file on writable storage satisfies any of them. Hash chaining makes tampering detectable; it does not make records immutable.
  • To produce Rule 605 or Rule 606 reports. Those are broker-dealer and market-centre obligations with prescribed formats. A buy-side firm is the recipient of a Rule 606(b)(3) report, not the filer. This engine produces neither.
  • To satisfy a specific jurisdiction out of the box. The engine is deliberately jurisdiction-neutral. Which tags are mandatory, which timestamp granularity applies, and how long records must be kept are all constructor inputs or your own storage decisions, because the answers differ per regime and per firm status.
  • As a substitute for a periodic execution-quality review. Per-order screening does not replace the regular and rigorous review FINRA expects at minimum quarterly, on a security-by-security and type-of-order basis, from members not reviewing order by order.

Prerequisites

  • Trade capture producing, per order: identifiers, side, quantity, venue, algo/trader/ client IDs, individual fills with price and quantity, and ISO-8601 UTC timestamps with an explicit offset.
  • A benchmark price per order (arrival price, interval VWAP, TWAP) captured before or during execution, not reconstructed afterwards from the fills themselves.
  • A decision, written down, on: which regulatory_tags your regime requires, what slippage_tolerance is defensible per instrument and order type, which TimestampPrecision your trading activity attracts, and your retention period.
  • Retention-locked or externally anchored storage for the exported log.

Workflow

  1. Configure the engine to your obligation, not to the defaults. Pass required_tags naming the tags your regime actually requires — the default empty tuple only checks that some tag exists, which nearly anything passes. Pass timestamp_precision matching your activity under RTS 25 (1 s voice/RFQ/negotiated, 1 ms other activity, 1 µs high-frequency algorithmic trading); the default checks nothing, because there is no universal figure.

  2. Set slippage_tolerance deliberately and record why. It is a firm risk parameter with no regulatory basis — no regulator prescribes a number. A single tolerance across a large-cap and an illiquid small-cap will generate false positives on one and miss real outliers on the other.

  3. Capture the benchmark before you need it. A record submitted with benchmark_price=None is flagged as not assessed, with slippage set to nan and slippage_evaluated=False. That is the correct outcome — a missing benchmark is an evidence gap, not a clean execution.

  4. Screen each record with run_best_ex_checks(). It returns every violation in violations, not just the last one. Read the list, not only is_compliant: a record can breach slippage and be missing tags, and both belong in the compliance file.

  5. Verify the chain before relying on the log. verify_audit_log() returns an empty list when the log is internally consistent, or one message per problem identifying the entry by sequence number. Run it before any export or examiner request.

  6. Anchor the head hash externally. head_hash is the tip of the chain. Publish or escrow it on a schedule. Without an external anchor, a party who can rewrite the whole log can recompute a self-consistent chain and verification will pass.

  7. Archive under your retention rule. Export, then move the file to storage that meets your regime's requirement, and keep it for the applicable period — five years under MiFID II Article 16(6) (up to seven on a competent authority's request), six years under FINRA Rule 4511 where no other period is specified.

Full procedure: see references/workflows.md. Per-regime rules, current status, and sources: see references/standards.md. Printable sign-off checklist: see assets/checklist.md.

Common Pitfalls

  • Reading a pass as a best-execution determination. The single most dangerous misreading of this skill. See When NOT to Use.
  • Treating a missing benchmark as a clean execution. Before version 2.1.0 the engine reported slippage=0.0 and "Best execution standards met" for a record with no benchmark — the check was skipped and the skip looked like a pass. Test slippage_evaluated, never the number.
  • Reading only the last violation. The engine used to overwrite its own notes, so a 33% slippage breach on a record that was also missing tags was filed as "Missing regulatory tags". Read violations.
  • Assuming a failed record was logged. It now always is. Previously a missing execution timestamp returned early with an empty hash and no audit entry, discarding precisely the record an examiner asks about.
  • Believing a per-record hash proves anything. A hash stored next to the record it hashes is recomputable by whoever edits the record. Only the chain plus an external anchor gives evidence.
  • Citing RTS 28 as a live obligation. Article 27(6) of MiFID II and its RTS 28 annual top-five-venue reports were deleted by Directive (EU) 2024/790; ESMA told national authorities to deprioritise supervision from 13 February 2024.
  • Citing SEC Regulation Best Execution. It was proposed in December 2022 and withdrawn on 12 June 2025 without being adopted. FINRA Rule 5310 remains the operative US best-execution rule for FINRA members.
  • Asserting microsecond or nanosecond timestamps are universally mandatory. RTS 25 sets granularity by activity and never mentions nanoseconds. Over-specifying wastes infrastructure; under-specifying breaches.
  • Assuming WORM is required. SEC Rule 17a-4 has permitted an audit-trail alternative since the October 2022 amendments took effect on 3 January 2023. WORM remains one permitted option, not the only one.
  • Confusing whose obligation it is. Rule 605 binds market centres and, since the 2024 amendments, broker-dealers introducing or carrying at least 100,000 customer accounts. Rule 606 binds broker-dealers routing customer orders. RTS 27 bound execution venues. A buy-side quant firm is generally none of these.
  • Naive or local-time timestamps. A timestamp with no offset, or one in local time, is flagged. Recording "10:00:02" with no offset makes cross-venue sequencing unreconstructable after a daylight-saving transition.

Verification

  • Confirm a record with two simultaneous breaches reports both in violations and both in notes (test_all_violations_recorded_not_just_the_last).
  • Confirm a record with no benchmark, and one with no fills, are each non-compliant with slippage_evaluated=False and slippage as nan — not 0.0.
  • Confirm a record failing validation still produces a non-empty record_hash and a single audit-log entry.
  • Confirm slippage is adverse-cost signed: buying above and selling below the benchmark both yield positive slippage; confirm the volume-weighted average is used, not the simple mean (90@10 and 110@90 against a 100 benchmark gives +8%, not 0%).
  • Confirm slippage exactly equal to the tolerance does not flag (strict >).
  • Confirm tampering is detected: edit a logged record, delete an entry, reorder entries, and flip an is_compliant verdict — verify_audit_log() must report each.
  • Confirm identical records hash identically across engine instances.
  • Confirm the export round-trips non-ASCII instrument and venue names as UTF-8.
  • Run python -m unittest discover -s skills/best-execution-record-keeping-global/scripts and confirm a 100% pass rate.

Related Skills

  • us-reg-nms-order-protection-rule-compliance
  • eu-market-abuse-regulation-mar-surveillance
  • mifid-ii-algo-trading-compliance-eu
  • transaction-cost-analysis-tca-integration
  • post-trade-execution-quality-scorecard
  • record-retention-periods-by-jurisdiction
  • clock-synchronization-ptp-for-trading-hosts
  • structured-logging-for-post-incident-forensics

Файлы в комплекте

Модель читает эти файлы по мере необходимости, пока навык загружен. Они доступны только для чтения и никогда не выполняются.

Часто задаваемые вопросы

Что делает навык ИИ Best Execution Record Keeping Global?

Используйте, когда качество исполнения нужно проверять относительно эталона, сохраняя каждое решение при проверке в виде защищённых от незаметного изменения доказательств в соответствии со статьёй 27 MiFID II и правилом 5310 FINRA. Этот инструмент выявляет отклонения, но не подтверждает, что наилучшее исполнение было достигнуто.

Зачем использовать Best Execution Record Keeping Global в TypingMind?

Потому что вы устанавливаете навык один раз и используете его с любой моделью. Best Execution Record Keeping Global — это обычный текст в формате Markdown, а не код для конкретного поставщика, поэтому один и тот же навык работает с GPT-5, Claude, Gemini, Grok или локальной моделью. Вы можете менять модель прямо во время чата, и навык продолжит работать. TypingMind использует ваши собственные ключи API, поэтому вы платите поставщикам напрямую, а не оформляете подписку с оплатой за каждое место. Ваши навыки и чаты остаются в вашем собственном хранилище.

Как установить Best Execution Record Keeping Global в TypingMind?

В TypingMind откройте «Плагины → Навыки → Установить из GitHub» и вставьте https://github.com/HimanshuJ16/Algo-Trading-Skills/tree/main/skills/best-execution-record-keeping-global. TypingMind прочитает файл SKILL.md, включит сопутствующие файлы в пакет и установит навык, который можно включать отдельно для каждого чата.

Какие модели ИИ могут использовать Best Execution Record Keeping Global?

Любая модель, которую вы подключите в TypingMind. Навыки ИИ — это обычные инструкции в формате Markdown, а не код для конкретного поставщика, поэтому GPT, Claude, Gemini, Grok и локальные модели могут загружать этот навык, когда запрос ему соответствует.

Со сколькими моделями ИИ можно использовать Best Execution Record Keeping Global?

С любым количеством. В TypingMind вы можете использовать Best Execution Record Keeping Global с любой моделью, которая поддерживает навыки, в том числе с GPT, Claude, Gemini, Grok, DeepSeek, Mistral и Llama. Для этого вы используете собственные ключи API.

Бесплатен ли навык ИИ Best Execution Record Keeping Global?

Да. Навык опубликован на GitHub по лицензии Apache-2.0. Издатель — HimanshuJ16. Вы платите только своему поставщику ИИ за использованные токены.

Что такое навыки ИИ?

Навык ИИ — это набор инструкций, которыми модель ИИ может пользоваться каждый раз, когда ей нужно выполнить конкретную задачу. Он соответствует открытому формату Agent Skills: файл SKILL.md с названием и описанием, а также любые скрипты, шаблоны или справочные файлы, которые могут понадобиться модели. Модель читает инструкции, только когда ваш запрос соответствует навыку, поэтому установленный навык ничего не стоит, пока не используется.

Чем навыки ИИ отличаются от плагинов и серверов MCP?

Плагин или сервер MCP даёт модели новые инструменты, которые она может вызывать: при вызове где-то выполняется код и возвращает результат. Навык ИИ, напротив, даёт модели знания и описывает порядок действий: как подойти к задаче, какие шаги выполнить и каким должен быть хороший результат. Навыки — это обычный текст в формате Markdown, поэтому им не нужны сервер, ключ API или среда выполнения, и они работают с любой моделью.

Все

Создайте своё рабочее пространство с ИИ прямо сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇