# Heisenbug: Forex Arbitrage Simulator

> Simulate a two-venue forex arbitrage bot locally in Python. Tune confidence threshold, trade size and fees, and compare settings on the same market. Simulation only, no real orders.

Heisenbug: Forex Arbitrage Simulator is a paid AI agent skill on Agensi by Tomás Teixeira, in Trading & Investing. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $9.99 (one-time purchase)
- Creator: [Tomás Teixeira](https://www.agensi.io/creators/tomas-teixeira)
- Category: [Trading & Investing](https://www.agensi.io/skills/trading-investing)
- Version: 1.0
- Last updated: 2026-11-19
- Security: scan passed (2026-11-19); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/heisenbug-forex-arbitrage-simulator
- Tags: trading, python, backtesting, fintech, simulation

## About this skill

Heisenbug: Forex Arbitrage Simulation & Strategy Testing. Simulate a two-venue currency arbitrage bot from your AI coding agent. Tune the confidence threshold, trade size and fees, compare settings side by side on the same market, and find the fee level where the strategy stops working. Use the built-in synthetic market or your own bid/ask CSV. Includes three worked examples with real output and reference guides on strategy and metrics. Runs locally in plain Python with no dependencies, accounts or API keys. Simulation only: no real orders, not financial advice.

## Requires

- Python 3.8+

## Known limitations

Assumes instant fills and unlimited liquidity. No slippage modeling. Requires Python 3.8+. Simulation only; no live exchange connectivity.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Heisenbug: Forex Arbitrage Simulator skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What is included in the purchase of the heisenbug skill?

The skill includes the core Python simulation engine, a set of template configuration files, and sample CSV data for immediate testing of the arbitrage logic.

### Which AI agents or frameworks are compatible with this simulation engine?

This skill is designed as a standalone Python engine; you can invoke it from any AI agent capable of executing local Python scripts or providing input parameters to a CLI-based tool.

### Are there any complex dependencies or API keys required to get started?

Heisenbug is built to be extremely lightweight, utilizing only the Python 3.8+ standard library, meaning you do not need to install heavy dependencies like Pandas or NumPy.

### Can I use my own historical market data for backtesting instead of synthetic data?

Yes, the engine allows you to ingest custom CSV files containing bid/ask quotes, enabling you to test your bot against specific historical market events or proprietary datasets.

### How does the skill handle exchange fees and transaction costs?

Heisenbug calculates profitability by factoring in fixed or percentage-based transaction fees across both venues, helping you identify the exact 'alpha' required to overcome exchange costs.

### Will I receive updates if new strategy types or features are added?

While the current version focuses on single-pair dual-venue arbitrage, buyers receive lifetime access to future updates, including any expansions to multi-leg or triangular arbitrage logic.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
