DeepTraderX: Instructions file for Claude Code

CLAUDE.md

DeepTraderX CLAUDE.md is an instructions file for Claude Code from armandcismaru/DeepTraderX. It costs 620 tokens per session, scanned A, original, MIT.

Repository instructions for DeepTraderX, an academic program that tests an LSTM trading agent in a simulated market. They explain the project’s conventions, known bugs, security notes, and how to run checks.

In plain words
What is it for?
Use them when changing or checking DeepTraderX, running its simulations, reviewing known issues, or applying its formatting and lint checks.
Why use it?
They give coding agents the context needed to edit the project safely and avoid mistakes caused by its working-directory requirements, shared market state, and flaky trials.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions AGENTS.md.

This is armandcismaru/DeepTraderX's own configuration. It tells Claude Code how to work on DeepTraderX itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything DeepTraderX configures →

Reuse

Borrowing it

Nothing to install: this file belongs to armandcismaru/DeepTraderX. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/armandcismaru/DeepTraderX/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/armandcismaru/DeepTraderX

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for DeepTraderX CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/armandcismaru/deeptraderx/claude-md/github.svg)](https://agentmods.dev/instructions/armandcismaru/deeptraderx/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/armandcismaru/deeptraderx/claude-md"><img src="https://agentmods.dev/badge/instructions/armandcismaru/deeptraderx/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for DeepTraderX CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/armandcismaru/deeptraderx/claude-md"><img src="https://agentmods.dev/badge/instructions/armandcismaru/deeptraderx/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 620 This file is loaded in full into every session.
When invoked 620 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00620 $0.00620
Opus 5.5 $0.00248 $0.00248
Sonnet 5.5 $0.00124 $0.00124
Haiku 4.5 $0.00062 $0.00062

Measured 2mo ago against content hash fa6c71717a19, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

DeepTraderX CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 48 lines

How it starts

The opening of the file, as written. The whole thing — 48 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLAUDE.md

Guidance for Claude Code when working in this repository. The full guidance — conventions, the concurrency model, security findings, and the catalogue of known bugs — lives in AGENTS.md and is imported below. Read it before editing.

@AGENTS.md

Quick reference

What it is: DeepTraderX — an LSTM trading agent (DTR) competing inside TBSE, a multi-threaded simulated limit-order-book market. Academic research code; no live trading, no network surface. Full docs in docs/.

Run it (always from deep_trader_tbse/):

pip install -r requirements.txt
cd deep_trader_tbse
python3 tbse.py                 # config-driven
python3 tbse.py 0 0 0 5 0 0 5   # 7 ints: ZIC ZIP GDX AA GVWY SHVR DTR per side
python3 tbse.py markets.csv     # batch; prints "Done Now" on success

Verify / check: no test suite. Success = run completes (CSV mode prints Done Now) and pylint/black pass (./checks.sh).

Things to remember (high-signal)

  • Run from deep_trader_tbse/ — imports and the model path are CWD-relative.
  • Flaky trials are normal. Sessions ending with the wrong thread count are auto-discarded and retried. The shared Exchange is unsynchronized; the GIL + retry loop are load-bearing. Don't add unlocked compound reads over tape/lob_anon.
  • docs/ is published to public GitHub Pages — keep security findings and internal notes out of it (they belong here / in AGENTS.md).
  • Bug catalogue is in AGENTS.md §6. The high-severity correctness bugs (Shaver/Sniper selling below cost, single-trader divide-by-zero, timemode mismatch, broken training entry point, pickle_files/bookkeep/DataGenerator defects) were fixed on 2026-06-02. Still open: dead/drifting deployment code (S3 calls commented out, Dockerfile not using requirements.txt, macOS arm64 TF/Keras version risk).
  • Keep features in sync: Exchange.lob_data_out() (training data) and DeepTrader.create_input() (inference) must produce the same 13 features in the same order.
  • Style: black + permissive pylint (.pylintrc, max line 120). Preserve the ported BSE/TBSE structure; prefer minimal surgical diffs.
  • Commit/push only when asked. Default branch is main.

Read the full file on GitHub · 48 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 48 lines · 620 tokens per session scan A fa6c71717a19

Subscribe to this mod's changes

DeepTraderX CLAUDE.md is an instructions file published in the GitHub repository armandcismaru/DeepTraderX (22 stars, last pushed 13d ago), licensed MIT. It adds 620 tokens to every session, about $0.0025 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

DeepTraderX CLAUDE.md compared with instructions from other repositories

DeepTraderX CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
DeepTraderX CLAUDE.mdarmandcismaru/DeepTraderXInstructions file2213d agoMITA620Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot