MTContext API

MTContext API as documented publicly: 53 operations. Contract generated from the documentation by API Evangelist (2026-11-18); not the provider's own document.

GitHub OpenAPI

Operations 53

POST /api/token POST /api/token #
GET /api/v1/account/history Trade history #
GET /api/v1/account/info GET /api/v1/account/info #
GET /api/v1/account/orders Pending orders #
GET /api/v1/account/positions Open positions #
GET /api/v1/alerts/events Fired alert events #
GET /api/v1/analysis/key-levels/{symbol} Pivot points #
GET /api/v1/analysis/patterns/{symbol} Candlestick patterns #
GET /api/v1/analytics/execution-quality Slippage data #
GET /api/v1/analytics/pnl/symbols P&L by symbol #
GET /api/v1/analytics/pnl/time P&L by time #
GET /api/v1/analytics/stats Trading statistics #
GET /api/v1/analytics/tick-history/{symbol} Spread/tick history #
POST /api/v1/coaching/backtest Backtest simulation #
GET /api/v1/coaching/explain/{ticket} Trade explanation #
POST /api/v1/coaching/fibonacci Fibonacci levels #
GET /api/v1/indicators List available indicators #
GET /api/v1/indicators/{symbol}/{indicator} Technical indicator data #
GET /api/v1/journal Read journal entries (no live‑terminal dependency) #
POST /api/v1/journal Write trade note #
GET /api/v1/macro/calendar Economic calendar #
GET /api/v1/macro/holding-risk/{symbol} Holding risk #
GET /api/v1/macro/news News #
GET /api/v1/macro/rates Interest rates #
GET /api/v1/macro/risk-regime Risk-on/risk-off score #
GET /api/v1/macro/sentiment/{symbol} Sentiment #
GET /api/v1/macro/sessions Market sessions #
GET /api/v1/market/bars/{symbol} OHLCV bars #
GET /api/v1/market/depth/{symbol} Market depth #
POST /api/v1/market/scan Symbol scan #
GET /api/v1/market/snapshot/{symbol} Enriched tick snapshot #
GET /api/v1/market/symbols All available symbols #
GET /api/v1/market/symbols/{symbol} Single symbol info #
GET /api/v1/market/tick/{symbol} Current tick data #
POST /api/v1/orders POST /api/v1/orders #
DELETE /api/v1/orders/{ticket} Cancel pending order #
PATCH /api/v1/orders/{ticket} Modify pending order #
POST /api/v1/orders/check Preflight order validation #
DELETE /api/v1/positions/{ticket} Close position #
PATCH /api/v1/positions/{ticket} Modify position stop_loss/take_profit #
POST /api/v1/positions/{ticket}/breakeven Move SL to entry #
POST /api/v1/positions/{ticket}/partial-close Partial close #
POST /api/v1/positions/{ticket}/reverse Reverse position #
POST /api/v1/positions/{ticket}/trailing-stop Set trailing stop #
GET /api/v1/risk/correlation Pearson correlation between two symbols #
POST /api/v1/risk/lot-size Position sizing #
GET /api/v1/risk/summary Portfolio risk overview #
GET /api/v1/terminal/experts Installed EAs #
GET /api/v1/terminal/info Terminal info #
GET /api/v1/terminal/journal Terminal journal #
GET /api/v1/terminal/logs EA logs #
GET /api/v1/terminals GET /api/v1/terminals #
GET /api/v1/tools Lists the tools your plan allows, with each tool's JSON input schema and whether it changes trading state #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/mtcontext-com:mtcontext-com-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

mtcontext-com-openapi-generated.yml Raw ↑
openapi: 3.1.0
info:
  title: MTContext API
  version: '2026-11-18'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-11-18: 53 operation(s) read from 6 public documentation page(s) (each operation
    names its page in x-source). This is not the provider''s published contract; MTContext has published no machine-readable contract that the
    pipeline could find. Engine: local.'
  x-evidence-tiers:
    code-example: 6
    documentation: 47
    pages-with-code: 4
    pages-read: 6
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-11-18'
  x-generator: generate-contract-from-docs.py
  x-engine: local
  x-sources:
  - https://docs.mtcontext.com/docs/api
  - https://docs.mtcontext.com/docs/api/endpoints
  - https://docs.mtcontext.com/docs/tools
  - https://help.mtcontext.com/hc/knowledge-base/en/categories/connecting-ai-clients
  - https://docs.mtcontext.com/docs/setup/claude-desktop
  - https://help.mtcontext.com/hc/knowledge-base/articles/metatrader-mcp-session-token-jwt
servers:
- url: https://api.mtcontext.com
paths:
  /api/token:
    post:
      operationId: post_api_token
      tags:
      - Api
      summary: POST /api/token
      x-source: https://docs.mtcontext.com/docs/api
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiTokenRequest'
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl -X POST https://api.mtcontext.com/api/token  -H \"Content-Type: application/json\"  -d '{\"license_key\": \"mtmcp_api_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"\
          }' \n API keys vs. terminal keys REST API keys ( mtmcp_api_ prefix) are license-scoped, not terminal-bound — one key can reach any terminal\
          \ on your license via the X-Terminal-Id header. They're a separate credential from the terminal key used by the "
  /api/v1/account/history:
    get:
      operationId: get_api_v1_account_history
      tags:
      - Api
      summary: Trade history
      x-source: https://docs.mtcontext.com/docs/api/endpoints
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/account/info:
    get:
      operationId: get_api_v1_account_info
      tags:
      - Api
      summary: GET /api/v1/account/info
      x-source: https://docs.mtcontext.com/docs/api
      responses:
        '200':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiV1AccountInfoResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: 'curl https://api.mtcontext.com/api/v1/account/info  -H "Authorization: Bearer mtmcp_api_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"  -H
          "X-Terminal-Id: your-terminal-id" '
  /api/v1/account/orders:
    get:
      operationId: get_api_v1_account_orders
      tags:
      - Api
      summary: Pending orders
      x-source: https://docs.mtcontext.com/docs/api/endpoints
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/account/positions:
    get:
      operationId: get_api_v1_account_positions
      tags:
      - Api
      summary: Open positions
      x-source: https://docs.mtcontext.com/docs/api/endpoints
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/alerts/events:
    get:
      operationId: get_api_v1_alerts_events
      tags:
      - Api
      summary: Fired alert events
      x-source: https://docs.mtcontext.com/docs/api/endpoints
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/analysis/key-levels/{symbol}:
    get:
      operationId: get_api_v1_analysis_key_levels_symbol
      tags:
      - Api
      summary: Pivot points
      x-source: https://docs.mtcontext.com/docs/api/endpoints
      parameters:
      - name: symbol
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/analysis/patterns/{symbol}:
    get:
      operationId: get_api_v1_analysis_patterns_symbol
      tags:
      - Api
      summary: Candlestick patterns
      x-source: https://docs.mtcontext.com/docs/api/endpoints
      parameters:
      - name: symbol
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/analytics/execution-quality:
    get:
      operationId: get_api_v1_analytics_execution_quality
      tags:
      - Api
      summary: Slippage data
      x-source: https://docs.mtcontext.com/docs/api/endpoints
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/analytics/pnl/symbols:
    get:
      operationId: get_api_v1_analytics_pnl_symbols
      tags:
      - Api
      summary: P&L by symbol
      x-source: https://docs.mtcontext.com/docs/api/endpoints
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/analytics/pnl/time:
    get:
      operationId: get_api_v1_analytics_pnl_time
      tags:
      - Api
      summary: P&L by time
      x-source: https://docs.mtcontext.com/docs/api/endpoints
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/analytics/stats:
    get:
      operationId: get_api_v1_analytics_stats
      tags:
      - Api
      summary: Trading statistics
      x-source: https://docs.mtcontext.com/docs/api/endpoints
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/analytics/tick-history/{symbol}:
    get:
      operationId: get_api_v1_analytics_tick_history_symbol
      tags:
      - Api
      summary: Spread/tick history
      x-source: https://docs.mtcontext.com/docs/api/endpoints
      parameters:
      - name: symbol
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/coaching/backtest:
    post:
      operationId: post_api_v1_coaching_backtest
      tags:
      - Api
      summary: Backtest simulation
      x-source: https://docs.mtcontext.com/docs/api/endpoints
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/coaching/explain/{ticket}:
    get:
      operationId: get_api_v1_coaching_explain_ticket
      tags:
      - Api
      summary: Trade explanation
      x-source: https://docs.mtcontext.com/docs/api/endpoints
      parameters:
      - name: ticket
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/coaching/fibonacci:
    post:
      operationId: post_api_v1_coaching_fibonacci
      tags:
      - Api
      summary: Fibonacci levels
      x-source: https://docs.mtcontext.com/docs/api/endpoints
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/indicators:
    get:
      operationId: get_api_v1_indicators
      tags:
      - Api
      summary: List available indicators
      x-source: https://docs.mtcontext.com/docs/api/endpoints
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/indicators/{symbol}/{indicator}:
    get:
      operationId: get_api_v1_indicators_symbol_indicator
      tags:
      - Api
      summary: Technical indicator data
      x-source: https://docs.mtcontext.com/docs/api/endpoints
      parameters:
      - name: symbol
        in: path
        required: true
        schema:
          type: string
      - name: indicator
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/journal:
    get:
      operationId: get_api_v1_journal
      tags:
      - Api
      summary: Read journal entries (no live‑terminal dependency)
      x-source: https://docs.mtcontext.com/docs/api
      parameters:
      - name: terminal_id
        in: query
        required: false
        schema:
          type: string
        description: Filter by terminal ID, or use 'all' / 'unassigned'
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
    post:
      operationId: post_api_v1_journal
      tags:
      - Api
      summary: Write trade note
      x-source: https://docs.mtcontext.com/docs/api/endpoints
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/macro/calendar:
    get:
      operationId: get_api_v1_macro_calendar
      tags:
      - Api
      summary: Economic calendar
      x-source: https://docs.mtcontext.com/docs/api/endpoints
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/macro/holding-risk/{symbol}:
    get:
      operationId: get_api_v1_macro_holding_risk_symbol
      tags:
      - Api
      summary: Holding risk
      x-source: https://docs.mtcontext.com/docs/api/endpoints
      parameters:
      - name: symbol
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/macro/news:
    get:
      operationId: get_api_v1_macro_news
      tags:
      - Api
      summary: News
      x-source: https://docs.mtcontext.com/docs/api/endpoints
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/macro/rates:
    get:
      operationId: get_api_v1_macro_rates
      tags:
      - Api
      summary: Interest rates
      x-source: https://docs.mtcontext.com/docs/api/endpoints
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/macro/risk-regime:
    get:
      operationId: get_api_v1_macro_risk_regime
      tags:
      - Api
      summary: Risk-on/risk-off score
      x-source: https://docs.mtcontext.com/docs/api/endpoints
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/macro/sentiment/{symbol}:
    get:
      operationId: get_api_v1_macro_sentiment_symbol
      tags:
      - Api
      summary: Sentiment
      x-source: https://docs.mtcontext.com/docs/api/endpoints
      parameters:
      - name: symbol
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/macro/sessions:
    get:
      operationId: get_api_v1_macro_sessions
      tags:
      - Api
      summary: Market sessions
      x-source: https://docs.mtcontext.com/docs/api/endpoints
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/market/bars/{symbol}:
    get:
      operationId: get_api_v1_market_bars_symbol
      tags:
      - Api
      summary: OHLCV bars
      x-source: https://docs.mtcontext.com/docs/api/endpoints
      parameters:
      - name: symbol
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/market/depth/{symbol}:
    get:
      operationId: get_api_v1_market_depth_symbol
      tags:
      - Api
      summary: Market depth
      x-source: https://docs.mtcontext.com/docs/api/endpoints
      parameters:
      - name: symbol
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/market/scan:
    post:
      operationId: post_api_v1_market_scan
      tags:
      - Api
      summary: Symbol scan
      x-source: https://docs.mtcontext.com/docs/api/endpoints
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/market/snapshot/{symbol}:
    get:
      operationId: get_api_v1_market_snapshot_symbol
      tags:
      - Api
      summary: Enriched tick snapshot
      x-source: https://docs.mtcontext.com/docs/api/endpoints
      parameters:
      - name: symbol
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/market/symbols:
    get:
      operationId: get_api_v1_market_symbols
      tags:
      - Api
      summary: All available symbols
      x-source: https://docs.mtcontext.com/docs/api/endpoints
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/market/symbols/{symbol}:
    get:
      operationId: get_api_v1_market_symbols_symbol
      tags:
      - Api
      summary: Single symbol info
      x-source: https://docs.mtcontext.com/docs/api/endpoints
      parameters:
      - name: symbol
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/market/tick/{symbol}:
    get:
      operationId: get_api_v1_market_tick_symbol
      tags:
      - Api
      summary: Current tick data
      x-source: https://docs.mtcontext.com/docs/api/endpoints
      parameters:
      - name: symbol
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/orders:
    post:
      operationId: post_api_v1_orders
      tags:
      - Api
      summary: POST /api/v1/orders
      x-source: https://docs.mtcontext.com/docs/api
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiV1OrdersRequest'
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl -X POST https://api.mtcontext.com/api/v1/orders  -H \"Authorization: Bearer mtmcp_api_...\"  -H \"X-Terminal-Id: your-terminal-id\"\
          \  -H \"Content-Type: application/json\"  -d '{ \n \"symbol\": \"EURUSD\", \n \"order_type\": \"BUY\", \n \"volume\": 0.01 \n }' "
  /api/v1/orders/{ticket}:
    delete:
      operationId: delete_api_v1_orders_ticket
      tags:
      - Api
      summary: Cancel pending order
      x-source: https://docs.mtcontext.com/docs/api/endpoints
      parameters:
      - name: ticket
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
    patch:
      operationId: patch_api_v1_orders_ticket
      tags:
      - Api
      summary: Modify pending order
      x-source: https://docs.mtcontext.com/docs/api/endpoints
      parameters:
      - name: ticket
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/orders/check:
    post:
      operationId: post_api_v1_orders_check
      tags:
      - Api
      summary: Preflight order validation
      x-source: https://docs.mtcontext.com/docs/api/endpoints
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/positions/{ticket}:
    delete:
      operationId: delete_api_v1_positions_ticket
      tags:
      - Api
      summary: Close position
      x-source: https://docs.mtcontext.com/docs/api/endpoints
      parameters:
      - name: ticket
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
    patch:
      operationId: patch_api_v1_positions_ticket
      tags:
      - Api
      summary: Modify position stop_loss/take_profit
      x-source: https://docs.mtcontext.com/docs/api/endpoints
      parameters:
      - name: ticket
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/positions/{ticket}/breakeven:
    post:
      operationId: post_api_v1_positions_ticket_breakeven
      tags:
      - Api
      summary: Move SL to entry
      x-source: https://docs.mtcontext.com/docs/api/endpoints
      parameters:
      - name: ticket
        in: path
        required: true
        schema:
          type: string
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/positions/{ticket}/partial-close:
    post:
      operationId: post_api_v1_positions_ticket_partial_close
      tags:
      - Api
      summary: Partial close
      x-source: https://docs.mtcontext.com/docs/api/endpoints
      parameters:
      - name: ticket
        in: path
        required: true
        schema:
          type: string
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/positions/{ticket}/reverse:
    post:
      operationId: post_api_v1_positions_ticket_reverse
      tags:
      - Api
      summary: Reverse position
      x-source: https://docs.mtcontext.com/docs/api/endpoints
      parameters:
      - name: ticket
        in: path
        required: true
        schema:
          type: string
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/positions/{ticket}/trailing-stop:
    post:
      operationId: post_api_v1_positions_ticket_trailing_stop
      tags:
      - Api
      summary: Set trailing stop
      x-source: https://docs.mtcontext.com/docs/api/endpoints
      parameters:
      - name: ticket
        in: path
        required: true
        schema:
          type: string
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/risk/correlation:
    get:
      operationId: get_api_v1_risk_correlation
      tags:
      - Api
      summary: Pearson correlation between two symbols
      x-source: https://docs.mtcontext.com/docs/api/endpoints
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/risk/lot-size:
    post:
      operationId: post_api_v1_risk_lot_size
      tags:
      - Api
      summary: Position sizing
      x-source: https://docs.mtcontext.com/docs/api/endpoints
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/risk/summary:
    get:
      operationId: get_api_v1_risk_summary
      tags:
      - Api
      summary: Portfolio risk overview
      x-source: https://docs.mtcontext.com/docs/api/endpoints
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/terminal/experts:
    get:
      operationId: get_api_v1_terminal_experts
      tags:
      - Api
      summary: Installed EAs
      x-source: https://docs.mtcontext.com/docs/api/endpoints
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/terminal/info:
    get:
      operationId: get_api_v1_terminal_info
      tags:
      - Api
      summary: Terminal info
      x-source: https://docs.mtcontext.com/docs/api/endpoints
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/terminal/journal:
    get:
      operationId: get_api_v1_terminal_journal
      tags:
      - Api
      summary: Terminal journal
      x-source: https://docs.mtcontext.com/docs/api/endpoints
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/terminal/logs:
    get:
      operationId: get_api_v1_terminal_logs
      tags:
      - Api
      summary: EA logs
      x-source: https://docs.mtcontext.com/docs/api/endpoints
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/terminals:
    get:
      operationId: get_api_v1_terminals
      tags:
      - Api
      summary: GET /api/v1/terminals
      x-source: https://docs.mtcontext.com/docs/api
      responses:
        '200':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiV1TerminalsResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl https://api.mtcontext.com/api/v1/terminals  -H \"Authorization: Bearer mtmcp_api_...\" \n Authentication \n Every request\
          \ needs an Authorization: Bearer <token> header. You can use either: \n API key (recommended): a mtmcp_api_ -prefixed key. The API server\
          \ automatically exchanges it for a JWT on your behalf. \n JWT : a pre-exchanged JWT from the /api/token endpoint. \n Authorization:\
          \ Bearer mtmcp_a"
  /api/v1/tools:
    get:
      operationId: get_api_v1_tools
      tags:
      - Api
      summary: Lists the tools your plan allows, with each tool's JSON input schema and whether it changes trading state
      x-source: https://docs.mtcontext.com/docs/api
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
components:
  schemas:
    PostApiTokenRequest:
      type: object
      properties:
        license_key:
          type: string
    GetApiV1AccountInfoResponse:
      type: object
      properties:
        data:
          type: object
          properties:
            symbol:
              type: string
            bid:
              type: number
            ask:
              type: number
            time:
              type: string
              format: date-time
    PostApiV1OrdersRequest:
      type: object
      properties:
        symbol:
          type: string
        order_type:
          type: string
        volume:
          type: number
    GetApiV1TerminalsResponse:
      type: object
      properties:
        data:
          type: object
          properties:
            symbol:
              type: string
            bid:
              type: number
            ask:
              type: number
            time:
              type: string
              format: date-time
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
security:
- bearer: []
tags:
- name: Api