tradememory-bridge
Skill1.4k starsChanged 9 months agoMITView on GitHub
Bridge between Binance trading events and TradeMemory Protocol. Automatically journals trades, recalls similar past setups, detects behavioral biases, and provides outcome-weighted recall for AI trading agents. Use this skill after executing Binance spot trades to build persistent memory.
- Installs packages
Trending
Quiet since October.thin dataabout the whole repository
Who's talking about mnemox-ai/tradememory-protocol
- A Hacker News story“Show HN: TradeMemory Protocol – Memory layer for AI trading agents”Hacker News · Feb 23, 2026 · 1 points
- sudosubin/agents.nix“agent-skills.github.mnemox-ai.tradememory-protocol: 0.5.5 → 0.5.6”GitHub · Oct 3, 2026
- sudosubin/agents.nix“agent-skills.github.mnemox-ai.tradememory-protocol: init at 0.5.5”GitHub · Sep 30, 2026
- LLMQuant/awesome-trading-agents“docs: refresh bi-weekly curation entries”GitHub · May 18, 2026
- punkpeye/awesome-mcp-servers“Update TradeMemory Protocol description to v0.5.0”GitHub · Mar 16, 2026
The biggest 5 of 8 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 8
Talked about on GitHub and Hacker News (8 times).
On GitHub · 7
- Oct 3, 2026agent-skills.github.mnemox-ai.tradememory-protocol: 0.5.5 → 0.5.6 — sudosubin/agents.nix0 reactions
- Sep 30, 2026agent-skills.github.mnemox-ai.tradememory-protocol: init at 0.5.5 — sudosubin/agents.nix0 reactions
- May 18, 2026docs: refresh bi-weekly curation entries — LLMQuant/awesome-trading-agents0 reactions
- Mar 16, 2026Update TradeMemory Protocol description to v0.5.0 — punkpeye/awesome-mcp-servers0 reactions · 3 comments
- Mar 8, 2026[MCP Catalog] New MCP server candidate: io.github.mnemox-ai/tradememory-protocol — obot-platform/mcp-catalog0 reactions
2 more on GitHub
- Mar 6, 2026feat: TradeMemory Bridge — persistent memory for AI trading agents — binance/binance-skills-hub0 reactions
- Feb 23, 2026Add TradeMemory Protocol to Finance section — punkpeye/awesome-mcp-servers0 reactions · 7 comments
On Hacker News · 1
- Feb 23, 2026Show HN: TradeMemory Protocol – Memory layer for AI trading agents1 point · 1 comment
In this repository3 other files it gives its agents.
- AGENTS.mdAGENTS.md
- llms.txtllms.txt
- trade-memorySkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 6 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 44
After executing a Binance spot trade using the Binance Spot skill:
- Distinctive: line 91
Before entering a new trade, recall past trades in similar market conditions.
- Distinctive: line 118
Check current trading state: confidence, risk appetite, drawdown, win/loss streaks.
- Distinctive: line 173
Check if any active plans match current market conditions.
- Distinctive: line 196
All timestamps are UTC (ISO 8601 format).
- Distinctive: line 200
All 20 MCP tools are free and open source under the MIT license.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
TradeMemory Bridge for Binance
Store Binance spot trades into persistent memory. Recall similar past trades before entering new positions. Detect behavioral biases (overtrading, revenge trading). Track strategy performance across sessions.
Requires: TradeMemory Protocol MCP server running.
Setup
Install and start the TradeMemory MCP server:
pip install tradememory-protocol
python -m tradememoryOr add to Claude Desktop / Claude Code MCP config:
{
"mcpServers": {
"tradememory": {
"command": "uvx",
"args": ["tradememory-protocol"]
}
}
}Workflow
After executing a Binance spot trade using the Binance Spot skill:
- Store the trade using
remember_tradeMCP tool - Before next trade, recall similar past trades using
recall_memoriesMCP tool - Check agent state using
get_agent_stateto see if drawdown or confidence suggests pausing - Review behaviors using
get_behavioral_analysisto detect biases
MCP Tools Reference
remember_trade
Store a completed trade into memory. Automatically updates all memory layers.
Parameters:
| Parameter | Type | Required | Description |
| symbol | string | Yes | Trading pair (e.g. "BTCUSDT", "ETHUSDT") |
| direction | string | Yes | "long" or "short" |
| entry_price | number | Yes | Entry price |
| exit_price | number | Yes | Exit price |
| pnl | number | Yes | Profit/loss in account currency |
| strategy_name | string | Yes | Strategy name (e.g. "GridBreakout", "MeanReversion") |
| market_context | string | Yes | Natural language description of market conditions |
| pnl_r | number | No | P&L as R-multiple (risk units) |
| context_regime | string | No | Market regime: trending_up, trending_down, ranging, volatile |
| confidence | number | No | Confidence level 0-1 (default 0.5) |
| reflection | string | No | Lessons learned from this trade |
Example — after a Binance spot BUY→SELL cycle:
Call remember_trade with:
symbol: "BTCUSDT"
direction: "long"
entry_price: 87500.00
exit_price: 89200.00
pnl: 170.00
strategy_name: "BreakoutEntry"
market_context: "BTC broke above 87000 resistance with volume spike. Funding rate positive. 4H RSI was 62."
context_regime: "trending_up"
confidence: 0.7
reflection: "Entry timing was good. Could have held longer — exited at first pullback."recall_memories
Before entering a new trade, recall past trades in similar market conditions. Returns scored results ranked by outcome quality and context similarity.
Parameters:
| Parameter | Type | Required | Description |
| symbol | string | Yes | Trading pair to filter by |
| market_context | string | Yes | Current market conditions (natural language) |
| context_regime | string | No | Current regime: trending_up, trending_down, ranging, volatile |
| strategy_name | string | No | Filter by strategy |
| limit | number | No | Max results (default 10) |
Example — before entering a new BTC trade:
Call recall_memories with:
symbol: "BTCUSDT"
market_context: "BTC consolidating near 90000 after rally. Volume declining. Funding rate turning negative."
context_regime: "ranging"
strategy_name: "BreakoutEntry"
limit: 5Returns past trades ranked by relevance to current conditions, with per-trade scores.
get_agent_state
Check current trading state: confidence, risk appetite, drawdown, win/loss streaks.
No parameters required.
Returns a recommended action: normal, reduce_size, or stop_trading based on drawdown severity.
get_behavioral_analysis
Detect trading biases from historical behavior patterns.
Parameters:
| Parameter | Type | Required | Description |
| strategy_name | string | No | Filter by strategy |
| symbol | string | No | Filter by symbol |
Detects: overtrading, revenge trading (re-entry after loss), disposition effect (cutting winners too early, holding losers too long), lot sizing inconsistency.
get_strategy_performance
Get win rate, profit factor, and aggregate stats per strategy.
Parameters:
| Parameter | Type | Required | Description |
| strategy_name | string | No | Filter by strategy |
| symbol | string | No | Filter by symbol |
create_trading_plan
Set conditional plans that trigger on specific market conditions.
Parameters:
| Parameter | Type | Required | Description |
| trigger_type | string | Yes | "market_condition", "drawdown", or "time_based" |
| trigger_condition | string | Yes | JSON describing when to trigger |
| planned_action | string | Yes | JSON describing what to do |
| reasoning | string | Yes | Why this plan was created |
Example:
Call create_trading_plan with:
trigger_type: "market_condition"
trigger_condition: '{"regime": "volatile", "symbol": "BTCUSDT"}'
planned_action: '{"type": "reduce_size", "factor": 0.5}'
reasoning: "Historical data shows BreakoutEntry underperforms in volatile BTC regimes"check_active_plans
Check if any active plans match current market conditions.
Parameters:
| Parameter | Type | Required | Description |
| context_regime | string | No | Current market regime |
Agent Behavior
- After every Binance spot trade execution, call
remember_tradewith full context. Include market conditions, not just price data. - Before entering a new position, call
recall_memoriesto check what happened in similar past conditions. - At session start, call
get_agent_stateto check if drawdown or losing streaks suggest reducing size. - Periodically, call
get_behavioral_analysisto detect emerging biases. - Never skip journaling. Memory quality depends on consistent recording.
- Use natural language for
market_context. The richer the description, the better the recall matching.
Supported Exchanges
TradeMemory Protocol is exchange-agnostic. While this skill documents the Binance bridge workflow, the same MCP tools work with any trading data source — just pass the correct symbol format for your exchange.
Notes
- All timestamps are UTC (ISO 8601 format).
pnl_r(R-multiple) is optional but significantly improves recall quality.- The
context_regimefield enables regime-filtered recall — strongly recommended. - TradeMemory stores data locally (SQLite). Daily audit roots are timestamped by an RFC 3161 authority by default: a 32-byte hash, no trade data (
TRADEMEMORY_TSA=offturns it off). The README's Security section lists the other outbound calls. - All 20 MCP tools are free and open source under the MIT license.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

