forex-trading

forex-trading is a skill for Claude Code from mahmoud20138/Tradecraft. It costs 94 tokens per session (1,138 once invoked), scanned A, original, MIT.

A beginner reference for the foreign exchange market, where currencies are traded in pairs such as EUR/USD. It explains pair types, pip values, trade sizes, trading sessions, overnight charges, and how central banks can affect prices.

In plain words
What is it for?
Use it to understand major, minor, and exotic currency pairs, calculate pip values, compare lot sizes, identify session overlaps, and learn about carry trades, swaps, rollovers, and central-bank effects.
Why use it?
It removes the need to piece together basic forex terms and calculations from separate sources. It helps clarify how pair choice, position size, timing, and overnight holding costs relate to a trade.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the tradecraft plugin — 58 skills shipped together

Good fit Use it to understand major, minor, and exotic currency pairs, calculate pip values, compare lot sizes, identify session overlaps, and learn about carry trades, swaps, rollovers, and central-bank effects.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mahmoud20138/tradecraft/forex-trading
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.

Any agent
npx skills add mahmoud20138/Tradecraft --skill forex-trading
Clone the repo
git clone --depth 1 https://github.com/mahmoud20138/Tradecraft

Made for: Claude Code.

Or install tradecraft, the plugin that ships this one along with the rest of its 58 skills.

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 forex-trading

README.md
[![agentmods](https://agentmods.dev/badge/skills/mahmoud20138/tradecraft/forex-trading/github.svg)](https://agentmods.dev/skills/mahmoud20138/tradecraft/forex-trading)
Your own site
<a href="https://agentmods.dev/skills/mahmoud20138/tradecraft/forex-trading"><img src="https://agentmods.dev/badge/skills/mahmoud20138/tradecraft/forex-trading/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 forex-trading

Your own site · 80×15
<a href="https://agentmods.dev/skills/mahmoud20138/tradecraft/forex-trading"><img src="https://agentmods.dev/badge/skills/mahmoud20138/tradecraft/forex-trading.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 94 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,138 The whole file, excluding the scripts and references it only reads on demand.
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.00094 $0.01138
Opus 5 $0.00047 $0.00569
Sonnet 5 $0.00019 $0.00228
Haiku 4.5 $0.00009 $0.00114

Measured 11d ago against content hash 61dfc96772a2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

forex-trading 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 11d 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.

plugins/tradecraft/skills/forex-trading/SKILL.md · 101 lines

How it starts

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

Skill: Forex Trading | Domain: trading | Category: asset-class | Level: beginner Tags: trading, asset-class, forex, pairs, pips, session-hours

Forex Trading — Asset Class Reference

Major Pairs & Characteristics

Pair Nickname Spread (avg) Best Session Volatility
EURUSD Fiber 0.1–0.6 pips London/NY overlap Medium
GBPUSD Cable 0.3–1.0 pips London open High
USDJPY Ninja 0.2–0.7 pips Tokyo/London Medium
AUDUSD Aussie 0.2–0.8 pips Sydney/London Medium
USDCAD Loonie 0.3–1.0 pips NY session Medium
USDCHF Swissie 0.3–1.0 pips London/NY Medium

Pip Value Calculator

def pip_value(pair: str, lot_size: float, account_currency: str = "USD") -> float:
    """Standard pip values for 1 standard lot (100,000 units)."""
    pip_sizes = {
        "EURUSD": 0.0001, "GBPUSD": 0.0001, "AUDUSD": 0.0001,
        "USDCAD": 0.0001, "USDCHF": 0.0001, "USDJPY": 0.01,
        "XAUUSD": 0.01,   "XAGUSD": 0.001,
    }
    pip = pip_sizes.get(pair.upper(), 0.0001)
    # For USD-quoted pairs: pip_value = pip * lot_size * contract_size
    return pip * lot_size * 100_000

Session Hours & Liquidity Windows

Session UTC Open UTC Close Key Pairs
Sydney 22:00 07:00 AUDUSD, NZDUSD
Tokyo 00:00 09:00 USDJPY, AUDJPY
London 07:00 16:00 GBPUSD, EURUSD
New York 12:00 21:00 All majors
London/NY Overlap 12:00 16:00 Highest volume — best for scalping

Carry Trade Framework

def carry_trade_screen(pairs: list, rates: dict) -> list:
    """Find best carry pairs: borrow low-rate currency, invest high-rate."""
    results = []
    for pair in pairs:
        base, quote = pair[:3], pair[3:]
        carry = rates.get(base, 0) - rates.get(quote, 0)
        results.append({"pair": pair, "carry_pct": round(carry, 2),
                        "direction": "LONG" if carry > 0 else "SHORT"})
    return sorted(results, key=lambda x: abs(x["carry_pct"]), reverse=True)

Read the full file on GitHub · 101 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. 11d ago First seen · 101 lines · 94 tokens per session scan A 61dfc96772a2

Subscribe to this mod's changes

forex-trading is a skill published in the GitHub repository mahmoud20138/Tradecraft (15 stars, last pushed 4mo ago), licensed MIT. It adds 94 tokens to every session and 1,138 once invoked, about $0.0005 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.