teaceo-debug/DEEP6 / .claude/skills/rithmic-networking
rithmic-networking
UnverifiedRithmic Networking Skill
Expert-level Rithmic API networking reference for DEEP6. All patterns verified live on 2026-05-20.
Invoke this skill when:
- Connecting to Rithmic via async-rithmic (any environment: test, paper, live, prop firm)
- Debugging Rithmic connection errors (rpCode 13, ForcedLogout, authentication, heartbeat)
- Subscribing to market data (L2/L3 depth, ticks, BBO)
- Setting up a new Rithmic service (MBO levels, feed adapter, execution broker)
- Configuring environment variables for Rithmic (RITHMIC_USER, RITHMIC_URI, etc.)
- Working with Rithmic gateway discovery, system names, or conformance
- Troubleshooting DOM/tick data feed issues from Rithmic
- Managing multi-service Rithmic connections (avoiding ForcedLogout from concurrent sessions)
- Understanding R|Trader Pro native infrastructure (servers, ports, regions, login agents)
Skill Files
| File | Purpose |
|---|---|
knowledge.md | Complete reference — 17 sections covering credentials, gateways, system names, infrastructure, connection patterns, data formats, error troubleshooting, conformance |
rithmic-connections.md | Quick-reference — copy-paste .env, working Python snippet, data format cheat sheet, common pitfalls |
Critical Knowledge (load before any Rithmic work)
- System:
Rithmic Paper Trading(not Apex) — case-sensitive - App name:
migo:DEEP6-simonly —migo:DEEP6gets rpCode 13 - L2 depth: Use
subscribe_to_market_depth("NQ", "CME", 0.0)— NOTsubscribe_to_market_data(ORDER_BOOK) - Tick format: Dict with
tick["trade_price"],tick["trade_size"],tick["aggressor"] - Depth format: Protobuf — use
update.ListFields()to extract fields - Issue #49: Always
await asyncio.sleep(0.5)afterclient.connect()
Workflow
- Identify the environment: test / paper / live / prop-firm — determines gateway URL and system name
- Check rithmic-connections.md: quick-reference for credentials, .env, code snippets
- Check knowledge.md: full gateway table, system names, infrastructure, error troubleshooting
- Follow connection pattern: Issue #49 workaround, plant selection, correct subscription methods
- Handle errors: use the troubleshooting decision tree in knowledge.md Section 12
- For new services: follow the service template pattern with FreezeGuard and reconnection
Key Codebase Files
| File | Purpose |
|---|---|
scripts/mbo_levels_service.py | Standalone MBO levels service (L2 DOM tracking) |
ninjatrader/simulator/rithmic/rithmic_feed.py | Feed adapter with all gateway URLs |
deep6v2/data/rithmic_client.py | RithmicClient wrapper with state machine |
deep6v2/config/rithmic.py | Pydantic configuration class |
deep6/data/rithmic.py | Connection factory with aggressor gate |
deep6/state/connection.py | FreezeGuard state machine |
.env / .env.example | Environment variable templates |
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 192k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 192k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 192k | Updated | Claude CodeCodex | Verified | Install |