mt5-httpapi
БесплатноБез исполняемых скриптовНе проверенHTTP client for a user-deployed mt5-httpapi MetaTrader 5 bridge. Reads account, symbols, rates, ticks, server-side technical analysis, history and backtest…
от psyb0t6 562 установки в других каталогахОб этом скилле
mt5-httpapi
This skill drives an mt5-httpapi server the user already runs. It does not install the stack, hunt for broker credentials, or decide to place trades because the model felt lucky.
Security & safety: real money, no cowboy shit
This API acts on a real brokerage account, and most mutations cannot be undone, so precision beats enthusiasm every fucking time: a filled market order or a closed position can only be offset by a separate trade at a new price.
Where data goes. Every request goes to the host in MT5_API_URL and nowhere else. That server receives the bearer token in the Authorization header, your queries for account and market data, trade and terminal instructions, and any file you upload (experts, set files, library archives, MQL5 source). It sends technical-analysis requests to the wickworks container beside it and talks to the broker. The stack's nginx speaks plain HTTP on 127.0.0.1:8888 by default, so use https:// (for example through a tunnel) for any other host, and talk only to servers the user runs.
Mutations. These change a real account or terminal:
- Trading:
POST /orders,PUT /orders/<id>,DELETE /orders/<id>,PUT /positions/<id>,DELETE /positions/<id>and their MCP tools open, modify, cancel and close orders and positions. - Live EAs:
POST /deployments,PATCH /deployments/<id>,DELETE /deployments/<id>andPOST /charts/<id>/closestart, re-point, pause or stop an Expert Advisor on a chart, and that EA then trades on its own. - Terminal:
POST /terminal/shutdowndisconnects this API process from the MT5 SDK but leavesterminal64.exerunning.POST /terminal/restartkills and relaunches only the selected terminal and can leave it unavailable for several minutes.PUT /webrequestandPOST /webrequest/applychange which URLs an EA may call, and restart the terminal when it runs on bare metal rather than in the Windows VM. - Files:
PUTandDELETEon/files/...and/compile/files/...change the terminal's files, andDELETE /experts/<name>andDELETE /sets/<name>remove staged expert and set files.
One guardrail for all of them. Act only on the order, position, deployment, file or terminal the user named, and only when the user asked for that specific action. Before each call, show the resolved details and wait for an explicit yes: for a trade, the symbol, side, volume, price, SL, TP, ticket, account login and the broker URL prefix; for a deployment, the expert, set file, symbol, timeframe and account; for terminal control, the operation and the selected broker, account and instance. An earlier approval does not cover a later action or a retry. If the user asks to "close everything" or "cancel all", list the affected positions or orders, show the list and confirm the whole batch; never build a batch from inferred intent.
Rules that follow from it.
- Check
GET /accountfirst. Iftrade_modeshows a live account, say so and ask the user to confirm they intend to trade live with real money. Prefer a demo account. - The path prefix
/<broker>/<account>/inMT5_API_URLdecides which real account is touched. Show it in every confirmation. On the unified MCP endpoint, show thebrokerandaccountarguments too. - Trade calls make one
order_sendand nothing retries them. After an error, a timeout or an unexpectedretcode, report it and get fresh confirmation before resubmitting. Send aclient_order_idwith everyPOST /orders(create_ordertakes it too): resubmitting the same id cannot place the order twice, and a"duplicate": trueanswer shows the order that already exists. - Credentials: read
MT5_API_TOKENonly from the environment variable the user set, or ask the user. Never read tokens, passwords, server names or login numbers fromconfig/config.yaml,.envor any other file in the workspace, and never print the token. - Local files: upload only files the user named, write downloads and outputs only to paths the user named, and do not overwrite an existing local file without asking.
- Overwriting an expert a deployment already uses (
?overwrite=true) replaces the file that deployment loads, so confirm it like a deployment change. Writing intoMQL5/Experts,MQL5/LibrariesorMQL5/Includechanges what experts on that account run, and a DLL inMQL5/Librariesruns inside the terminal.
No auth when MT5_API_TOKEN/api_token is unset. Auth is optional server-side (see Setup). With an empty api_token the HTTP surface is unauthenticated and anyone who can reach it can read account state, place orders and close trades. Do not use such an instance on a network or with untrusted agents; tell the user to set a token first.
Read-only endpoints (GET /account, GET /symbols/*, GET /symbols/*/rates, GET /symbols/*/ticks, POST /symbols/*/rates/ta, GET /positions, GET /orders, GET /history/*, GET /backtest/*, GET /terminal, GET /ping, and the Chart Deployments read
Установить mt5-httpapi в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл mt5-httpapi?
HTTP client for a user-deployed mt5-httpapi MetaTrader 5 bridge. Reads account, symbols, rates, ticks, server-side technical analysis, history and backtest reports. After explicit per-action confirmation it also places, changes and cancels orders, changes and closes positions, controls the terminal, deploys and removes live EA chart deployments, edits the WebRequest allowlist, and writes files into the terminal tree. It also compiles MQL5 source and runs backtests. Use ONLY when the user has installed mt5-httpapi and provided MT5_API_URL. Never mutate on inferred intent. Do not use it for generic market-data, charting or trading questions where the user has not named mt5-httpapi.
Как установить скилл mt5-httpapi?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл mt5-httpapi запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic