Setup & Installation
Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:
Version History
Initial public release. - Added API reference covering health checks, account info, symbols, orders, positions, and history endpoints. - Included detailed field/key descriptions for safer pre-trade checks and parameter usage. - Provided concise setup instructions and example curl commands for all major endpoints. - Documented example position sizing calculations and helpful trading tips. - Added dedicated [references/setup.md] file for installation details.
What This Skill Does
Wraps MetaTrader 5 in a REST API so you can place trades, manage positions, and pull market data over plain HTTP. Runs alongside an MT5 terminal inside a Windows environment and exposes forex, crypto, and stock market operations via JSON.
Removes the need for MQL5 scripting or Python MT5 bindings by exposing the full trading lifecycle through standard HTTP calls from any language or system.
When to use it
- Automating entry orders based on technical indicator signals
- Fetching live tick data for a custom trading algorithm
- Closing all open positions before a scheduled market event
- Adjusting stop-loss levels dynamically as price moves
- Pulling daily deal history for P&L reporting
Example Workflow
Here's how your AI assistant might use this skill in practice.
User asks: Place a 0.1 lot BUY on EURUSD with SL at 1.08 and TP at 1.10
- 1GET /account to verify trade_allowed is true
- 2GET /symbols/EURUSD to confirm trade_mode is 4 and note trade_contract_size
- 3GET /terminal to confirm connected is true
- 4POST /orders with symbol EURUSD, type BUY, volume 0.1, sl 1.08, tp 1.10
- 5Check retcode in response — 10009 confirms execution
Order filled at market price, deal and order IDs returned with ticket numbers
Requirements
Accounts, API keys, or tools you or your AI assistant may need to set up while using this skill.