Agent Trading on XBTFX
Connect any AI agent to your trading account. Execute trades, manage positions, and stream market data through natural language.
#184729.Floating P&L: +$42.50
Margin usage: 12%
EURUSD
#184729GBPUSD
#184731
How AI Trading Works
Three paths to connect AI to your XBTFX account. Choose the one that fits your workflow.
Skills Hub
Install a skill file into Claude Code, LangChain, CrewAI, or any agent framework. The skill teaches your AI how to use the XBTFX Trading API.
View Skills →MCP Server
Connect the XBTFX MCP server to Claude Desktop, Cursor, Windsurf, or VS Code Copilot. Your AI gets direct access to trading tools.
Learn More →Direct API
Build custom integrations using REST endpoints and WebSocket. Any language, any framework. Full programmatic control.
API Docs →What You Can Do
Execute Trades via Natural Language
Tell your AI to buy, sell, set stops, take profits. It translates to API calls automatically.
Automated Risk Management
AI monitors your positions, adjusts stop losses, reduces exposure when margin gets tight.
Portfolio Rebalancing
Define target allocations. AI maintains them by sending adjustment trades when drift exceeds your threshold.
Event-Driven Strategies
AI watches news feeds, economic calendars, and price action — executing trades when conditions are met.
Trade History Analysis
Ask your AI to analyze past trades, calculate win rates by symbol, and identify your best setups.
Real-Time Market Monitoring
Stream live quotes via WebSocket. AI alerts you to price levels, spread changes, or volatility spikes.
Works with Your Favorite AI Tools
Any tool that can make HTTP requests or connect via MCP can trade on XBTFX.
Start AI Trading in 3 Steps
Frequently
Asked Questions
Frequently Asked Questions
What is AI trading?
AI trading uses artificial intelligence to execute trades, manage positions, and analyze markets on your behalf. On XBTFX, you connect any AI agent to your trading account through the XBTFX Trading API.
Do I need programming experience?
Not necessarily. With the MCP Server, you can connect AI assistants like Claude or Cursor without writing code. For custom strategies, basic programming knowledge helps.
Is AI trading free on XBTFX?
Yes. The Trading API is included with every account at no additional cost. You only pay standard trading commissions and spreads.
Which AI assistants work with XBTFX?
Any AI that can make HTTP requests. Officially supported: Claude Code, Claude Desktop, Cursor, Windsurf, LangChain, CrewAI. The MCP server works with any MCP-compatible client.
Can AI trade crypto on XBTFX?
Yes. Every instrument on your account is accessible via the API, including cryptocurrency CFDs. You can also use BTC, ETH, or USDT denominated accounts.
Is it safe to let AI trade my account?
API keys are stored locally by the agent. You can revoke access instantly from the Console. We recommend starting with a demo account to test your setup.
What markets can AI trade?
Forex, crypto, metals, indices, stocks, and energies. Over 400 instruments accessible through the same API.
How do I get started?
Register at my.xbtfx.com, create a trading account, generate an API key at console.xbtfx.com, then connect your AI agent using the Skills Hub, MCP Server, or direct API integration.
Risk Warning
Trading leveraged CFD products carries a high level of risk and may not be suitable for all investors. Automated trading via API does not eliminate risk — algorithmic strategies can amplify losses as well as gains. You may lose some or all of your invested capital. Ensure you fully understand the risks before trading. Please read our Risk Disclosure Notice.
Start AI Trading with XBTFX
Create an account, get your API key, and connect your AI in minutes.