smart-router

smart-router is a skill for Claude Code, Codex from Signal-Execution-Labs/forex-trading-ai-agent. It costs 0 tokens per session (735 once invoked), scanned A, original, MIT.

A trade-routing tool that compares prices, available liquidity, fees, and expected market impact across exchanges before executing an order.

In plain words
What is it for?
Find a multi-exchange execution route, split orders, optimise timing and fees, and execute using TWAP, VWAP, iceberg orders, or block trading.
Why use it?
It reduces the chance that a large order moves the market against you or receives a worse price than necessary. Slippage is the difference between the planned trade price and the final price.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Find a multi-exchange execution route, split orders, optimise timing and fees, and execute using TWAP, VWAP, iceberg orders, or block trading.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/signal-execution-labs/forex-trading-ai-agent/smart-router
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 Signal-Execution-Labs/forex-trading-ai-agent --skill smart-router
Clone the repo
git clone --depth 1 https://github.com/Signal-Execution-Labs/forex-trading-ai-agent

Made for: Claude Code, Codex.

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 smart-router

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/signal-execution-labs/forex-trading-ai-agent/smart-router"><img src="https://agentmods.dev/badge/skills/signal-execution-labs/forex-trading-ai-agent/smart-router.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 735 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00000 $0.00735
Opus 5 $0.00000 $0.00367
Sonnet 5 $0.00000 $0.00147
Haiku 4.5 $0.00000 $0.00073

Measured 9d ago against content hash 3cebe904cc43, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

smart-router 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 9d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (__init__.py, router.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

skills/smart-router/SKILL.md · 131 lines

How it starts

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

⚡ Smart Order Router

K.I.T.'s Execution Engine - Best prices, minimal slippage, maximum profit!

Features

🎯 Best Execution

  • Real-time price comparison across 10+ exchanges
  • Order book depth analysis
  • Liquidity scoring
  • Market impact estimation

📊 Slippage Minimization

  • TWAP (Time-Weighted Average Price)
  • VWAP (Volume-Weighted Average Price)
  • Iceberg orders
  • Hidden liquidity detection

✂️ Order Splitting

  • Intelligent order fragmentation
  • Cross-exchange distribution
  • Timing optimization
  • Fee optimization

🌑 Dark Pool Access

  • Institutional-grade execution
  • Block trading
  • Minimal market impact
  • Price improvement

Usage

from smart_router import SmartRouter

router = SmartRouter()

# Find best execution path
route = await router.find_best_route(
    symbol="BTC/USDT",
    side="buy",
    amount=10,  # BTC
    max_slippage=0.001  # 0.1%
)

print(f"Best execution plan:")
print(f"  Total cost: ${route.total_cost:,.2f}")
print(f"  Avg price: ${route.avg_price:,.2f}")
print(f"  Expected slippage: {route.expected_slippage:.3%}")

for leg in route.legs:
    print(f"  - {leg.exchange}: {leg.amount} @ ${leg.price}")

# Execute with TWAP
result = await router.execute_twap(
    symbol="BTC/USDT",
    side="buy",
    amount=10,
    duration_minutes=30,
    interval_seconds=60
)

# Execute with VWAP
result = await router.execute_vwap(
    symbol="ETH/USDT",
    side="sell",
    amount=100,
    participation_rate=0.1  # 10% of volume
)

Execution Algorithms

Algorithm Best For Market Impact
Market Small orders, urgent High
Limit Price-sensitive Low
TWAP Large orders, time flexible Medium
VWAP Track market volume Low
Iceberg Hide size Low
Sniper Best price hunting Very Low

Configuration

smart_router:
  exchanges:
    - name: binance
      priority: 1
      max_volume_pct: 40
    - name: coinbase
      priority: 2
      max_volume_pct: 30
    - name: kraken
      priority: 3
      max_volume_pct: 30
      
  execution:
    default_algo: "smart"
    max_slippage: 0.1%
    retry_attempts: 3
    timeout_ms: 5000
    
  order_splitting:
    enabled: true
    min_split_size: $1000
    max_splits: 10
    
  twap:
    default_duration: 30m
    min_interval: 30s
    randomize: true
    
  vwap:
    lookback_period: 1h
    max_participation: 20%

Read the full file on GitHub · 131 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 9d ago First seen · 131 lines · 0 tokens per session scan A 3cebe904cc43

Subscribe to this mod's changes

smart-router is a skill published in the GitHub repository Signal-Execution-Labs/forex-trading-ai-agent (136 stars, last pushed 9d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 735 tokens. 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-09-03.