Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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…

psyb0tот 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> and POST /charts/<id>/close start, re-point, pause or stop an Expert Advisor on a chart, and that EA then trades on its own.
  • Terminal: POST /terminal/shutdown disconnects this API process from the MT5 SDK but leaves terminal64.exe running. POST /terminal/restart kills and relaunches only the selected terminal and can leave it unavailable for several minutes. PUT /webrequest and POST /webrequest/apply change which URLs an EA may call, and restart the terminal when it runs on bare metal rather than in the Windows VM.
  • Files: PUT and DELETE on /files/... and /compile/files/... change the terminal's files, and DELETE /experts/<name> and DELETE /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.

  1. Check GET /account first. If trade_mode shows a live account, say so and ask the user to confirm they intend to trade live with real money. Prefer a demo account.
  2. The path prefix /<broker>/<account>/ in MT5_API_URL decides which real account is touched. Show it in every confirmation. On the unified MCP endpoint, show the broker and account arguments too.
  3. Trade calls make one order_send and nothing retries them. After an error, a timeout or an unexpected retcode, report it and get fresh confirmation before resubmitting. Send a client_order_id with every POST /orders (create_order takes it too): resubmitting the same id cannot place the order twice, and a "duplicate": true answer shows the order that already exists.
  4. Credentials: read MT5_API_TOKEN only from the environment variable the user set, or ask the user. Never read tokens, passwords, server names or login numbers from config/config.yaml, .env or any other file in the workspace, and never print the token.
  5. 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.
  6. Overwriting an expert a deployment already uses (?overwrite=true) replaces the file that deployment loads, so confirm it like a deployment change. Writing into MQL5/Experts, MQL5/Libraries or MQL5/Include changes what experts on that account run, and a DLL in MQL5/Libraries runs 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

Полный SKILL.md на ClawHub

Установить 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), без исполняемых скриптов.

Похожие скиллы

Сравнить mt5-httpapi с