Логотип Cme Globex Futures Api Integration

Cme Globex Futures Api Integration

Сообщество
HimanshuJ16
cme-globex-futures-api-integration

Используйте при самостоятельной сборке сообщений для отправки ордеров в CME Globex: добавьте Operator ID и Manual Order Indicator, отсутствие которых приводит к отклонению сообщения, примените ограничение цены и проверьте поля перед отправкой. Это отправка реальных ордеров через iLink 3.

Add to TypingMind

Обзор

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

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

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

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

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

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

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

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

Установка

Установите навык ИИ Cme Globex Futures Api Integration в TypingMind, чтобы использовать его с любой LLM, или добавьте его в другой агент, который умеет читать SKILL.md.

1

Установка в TypingMind

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

  1. Откройте приложение и перейдите в раздел «Плагины → Навыки».
  2. Выберите «Установить из GitHub».
  3. Вставьте указанную ниже ссылку на папку навыка и подтвердите установку.
    https://github.com/HimanshuJ16/Algo-Trading-Skills/tree/main/skills/cme-globex-futures-api-integration
  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/cme-globex-futures-api-integration .claude/skills/cme-globex-futures-api-integration
После копирования перезапустите Claude Code, чтобы загрузить новый навык.

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

Включите навык Cme Globex Futures Api Integration в любом чате TypingMind, и дальше модель всё сделает сама. Его название и описание хранятся в системном промпте, а при появлении подходящего запроса модель сама загружает полные инструкции. Вам не нужно вызывать навык вручную, и до фактического использования он не расходует токены.

Модель сама загружает навык Cme Globex Futures Api Integration, как только появляется подходящий для него запрос.

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

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

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

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

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

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

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

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

When to Use

Use this skill when a trading system sends orders to CME Globex — futures and options on futures such as ES, CL, ZB — and you are assembling the order entry message yourself rather than handing an order to a vendor OMS that already fills in the exchange-mandated fields. It covers the four gateway checks a hand-rolled CME client most often gets wrong:

  1. Operator ID (Tag 50 / iLink 3 SenderID) absent or malformed — CME Rule 576.
  2. Manual Order Indicator (Tag 1028) absent, or a team/ATS ID used on a manually entered order — CME Rule 536.B.
  3. Price banding implemented as a two-sided check, which rejects perfectly legal resting orders that the exchange would accept.
  4. Market with Protection treated as an unbounded market order, so the residual that rests at the protection limit is invisible to position and risk logic.

When NOT to Use

  • As a session layer. This module validates and assembles fields. It does not encode SBE, run the FIXP session, sequence messages, or recover gaps — see fix-protocol-session-management-across-venues.
  • For stop and stop-limit orders. Stop orders on Globex have their own protection and trigger semantics; process_order rejects any order type other than LIMIT and MARKET rather than silently treating it as a limit.
  • As an idempotency mechanism. cl_ord_id is passed through, not tracked. Whether a resubmission after a lost response duplicates an order is out of scope — see order-placement-idempotency.
  • As a source of contract parameters. Tick size, Price Band Variation and protection points are inputs. They come from CME's published product reference files and change; nothing here derives or guesses them.
  • As your only pre-trade risk gate. These are exchange-conformance checks, not capital, exposure or drawdown limits — see sec-rule-15c3-5-risk-controls-us.

Prerequisites

  • A CME Globex Firm ID, iLink session, and Operator IDs registered in the Exchange Fee System (EFS). The value transmitted must match the registration exactly.
  • Knowledge of which Operator IDs are registered to an individual and which to a team/ATS — the two are not interchangeable across manual and automated orders.
  • Per-symbol ContractSpec: tick size (minimum price increment), Price Band Variation, and Market-with-Protection points, refreshed from CME's product reference files.
  • Python 3.10+. Standard library only — decimal, logging, dataclasses.

Workflow

  1. Load contract specifications. Build a ContractSpec per symbol. The constructor rejects a non-positive tick size or negative band/protection values, because a zero-width band silently rejects every order and a zero tick makes every price off-tick.

  2. Construct the engine. Pass team_operator_ids if you know which IDs are team/ATS registrations — the manual/automated pairing check is skipped when the set is empty rather than guessed at. Pass permitted_operator_id_symbols if the advisory notice in force for your firm differs from the default _ - : @.

  3. State Tag 1028 explicitly on every order. manual_order_indicator has no default. True means a human entered the order; False means it was generated or routed without direct human interaction — anything an execution algorithm produces is False. An order that leaves it unset is rejected before transmission, because CME rejects the message anyway and a guessed audit-trail value is worse than a refusal.

  4. Call process_order with the market state the exchange will judge the order against. reference_price is the CME Banding Reference Price — the last trade, else the best bid/offer, else the settlement price — and is required for a limit order. current_bid / current_ask are needed only for a market order, and only on the side the protection limit is computed from.

  5. Handle the rejection by type, not by string. OperatorIdError and ManualOrderIndicatorError mean a registration or configuration fault: the same order will fail again, so do not retry it — escalate. PriceBandingError and TickConformanceError mean the price is wrong for the current market: re-price and resubmit. A bare CmeOrderValidationError on a market-data argument means the quote is unusable, so refresh it before retrying.

  6. Account for the Market-with-Protection residual. On a market order the returned price is None — a market order carries no Tag 44 — and protection_price_limit says where unfilled quantity will rest as a limit order. Feed that into position tracking. If protection_limit_outside_band is set, the residual would rest outside the price band; the module flags and logs it rather than rejecting, because banding applies to price-based orders and a market order carries no price.

Common Pitfalls

  • Checking the price band on both sides. CME rejects buys above BRP + PBV and sells below BRP − PBV, and deliberately does not stop a bid below the market or an offer above it. A symmetric min <= price <= max check rejects ordinary deep passive orders the exchange would have accepted — a silent loss of legitimate order flow that no exchange reject ever tells you about.
  • Trusting price % tick_size == 0. In binary floating point 5000.10 % 0.05 is about 0.049999999, so a naive modulo check rejects a valid price for any product whose tick is not a power of two. Tick arithmetic here runs in decimal.Decimal.
  • Letting protection points off the tick. If protection points are not a whole number of ticks, the computed protection limit is off-tick. This module rounds it toward the market — down for a buy, up for a sell — so rounding can only tighten protection.
  • Sending a market order as if it were unbounded. Globex fills a market order only inside the protected range and rests the remainder at the limit of that range. A client that does not model this ends up holding a resting limit order it never placed.
  • Trimming whitespace off an Operator ID and sending it anyway. The transmitted value must match the EFS registration exactly; a padded ID is a configuration fault, so it is rejected rather than normalised.
  • Distinguishing Operator IDs by letter case. CME Operator IDs are not case sensitive, so DESK_01 and desk_01 are the same registration. The team/ATS check here compares case-insensitively for the same reason.
  • Omitting Tag 1028. In-scope iLink order entry messages without it, or with an invalid value, are rejected — and a team/ATS Operator ID may only submit automated messages.

Verification

  • Submit an order with manual_order_indicator=None and confirm it is rejected before transmission rather than defaulted.
  • Submit a limit buy far below the reference price and confirm it is accepted — the regression case a two-sided band check gets wrong — then a limit buy one tick above BRP + PBV and confirm PriceBandingError.
  • Submit a limit price off the product's tick (e.g. 5000.10 on a 0.25-tick product) and confirm TickConformanceError.
  • Submit a market buy and confirm price is None, ord_type == "MARKET", and protection_price_limit == best_offer + protection_points, on-tick.
  • Run python -m unittest discover -s skills/cme-globex-futures-api-integration/scripts.

Related Skills

  • cme-stp-fix-and-ilink2-tag-value-encoding
  • fix-protocol-session-management-across-venues
  • order-placement-idempotency
  • exchange-self-match-prevention-configuration
  • sec-rule-15c3-5-risk-controls-us

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

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

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

Что делает навык ИИ Cme Globex Futures Api Integration?

Используйте при самостоятельной сборке сообщений для отправки ордеров в CME Globex: добавьте Operator ID и Manual Order Indicator, отсутствие которых приводит к отклонению сообщения, примените ограничение цены и проверьте поля перед отправкой. Это отправка реальных ордеров через iLink 3.

Зачем использовать Cme Globex Futures Api Integration в TypingMind?

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

Как установить Cme Globex Futures Api Integration в TypingMind?

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

Какие модели ИИ могут использовать Cme Globex Futures Api Integration?

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

Со сколькими моделями ИИ можно использовать Cme Globex Futures Api Integration?

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

Бесплатен ли навык ИИ Cme Globex Futures Api Integration?

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

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

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

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

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

Все

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

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