DeepTraderX CLAUDE.md

DeepTraderX CLAUDE.md is an instructions file for coding agents 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

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/armandcismaru/deeptraderx/claude-md
Clone the repo
git clone --depth 1 https://github.com/armandcismaru/DeepTraderX

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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00310 $0.00310
Sonnet 5 $0.00124 $0.00124
Haiku 4.5 $0.00062 $0.00062

Measured 5d ago against content hash fa6c71717a19, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, 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 5d 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. 5d 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 (21 stars, last pushed 19d ago), licensed MIT. It adds 620 tokens to every session, about $0.0031 per session on Opus 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.