MTContext Docs
REST API

Endpoint Reference

Every REST API endpoint, grouped by the capability tier it requires.

The definitive, always-current reference is the interactive spec at /api/v1/docs (OpenAPI 3.1, served from /api/v1/openapi.json). This page mirrors it in table form for quick scanning and linking.

All paths are relative to https://api.mtcontext.com. See Getting Started for authentication, rate limits, and response format.

Free+ (no capability required)

MethodPathDescription
GET/api/v1/market/tick/:symbolCurrent tick data
GET/api/v1/market/bars/:symbolOHLCV bars
GET/api/v1/market/symbolsAll available symbols
GET/api/v1/market/symbols/:symbolSingle symbol info
GET/api/v1/market/snapshot/:symbolEnriched tick snapshot
GET/api/v1/account/infoAccount balance/equity
GET/api/v1/account/positionsOpen positions
GET/api/v1/account/ordersPending orders
GET/api/v1/account/historyTrade history
GET/api/v1/indicatorsList available indicators
GET/api/v1/indicators/:symbol/:indicatorTechnical indicator data
GET/api/v1/terminal/infoTerminal info
GET/api/v1/terminal/expertsInstalled EAs
GET/api/v1/terminal/logsEA logs
GET/api/v1/terminal/journalTerminal journal
GET/api/v1/terminalsConnected terminals
GET/api/v1/analysis/key-levels/:symbolPivot points
POST/api/v1/coaching/fibonacciFibonacci levels
GET/api/v1/macro/sessionsMarket sessions
POST/api/v1/risk/lot-sizePosition sizing
POST/api/v1/journalWrite trade note
GET/api/v1/journalQuery trade journal

Pro+ — analytics capability

MethodPathDescription
GET/api/v1/market/depth/:symbolMarket depth
POST/api/v1/market/scanSymbol scan
GET/api/v1/analysis/patterns/:symbolCandlestick patterns
GET/api/v1/coaching/explain/:ticketTrade explanation
GET/api/v1/analytics/statsTrading statistics
GET/api/v1/analytics/pnl/symbolsP&L by symbol
GET/api/v1/analytics/pnl/timeP&L by time
GET/api/v1/analytics/tick-history/:symbolSpread/tick history
GET/api/v1/analytics/execution-qualitySlippage data
GET/api/v1/risk/summaryPortfolio risk overview
GET/api/v1/risk/correlationPearson correlation between two symbols
GET/api/v1/macro/ratesInterest rates
GET/api/v1/macro/calendarEconomic calendar
GET/api/v1/macro/newsNews
GET/api/v1/macro/sentiment/:symbolSentiment
GET/api/v1/macro/holding-risk/:symbolHolding risk
GET/api/v1/macro/risk-regimeRisk-on/risk-off score
POST/GET/DELETE/api/v1/alertsAlert management
GET/api/v1/alerts/eventsFired alert events
PUT/GET/DELETE/api/v1/news-guardNews guard configuration

Pro+ — trade capability

MethodPathDescription
POST/api/v1/ordersPlace order (dry_run defaults to true)
POST/api/v1/orders/checkPreflight order validation
DELETE/api/v1/orders/:ticketCancel pending order
PATCH/api/v1/orders/:ticketModify pending order
DELETE/api/v1/positions/:ticketClose position
PATCH/api/v1/positions/:ticketModify position stop_loss/take_profit
POST/api/v1/positions/:ticket/partial-closePartial close
DELETE/api/v1/positions?symbol=Close all positions
POST/api/v1/positions/:ticket/breakevenMove SL to entry
POST/api/v1/positions/:ticket/trailing-stopSet trailing stop
POST/api/v1/positions/:ticket/reverseReverse position
PUT/GET/DELETE/api/v1/equity-guardEquity guard configuration
PUT/GET/DELETE/api/v1/prop-firmProp firm ruleset

Every endpoint in this table can affect a live trading account. dry_run defaults to true on order/position endpoints — pass "dry_run": false explicitly to execute for real.

Enterprise+

MethodPathDescription
POST/api/v1/coaching/backtestBacktest simulation

Not sure which tier you're on?

Check Dashboard → Billing for your current plan, or call any Free+ endpoint (like /api/v1/terminals) — a 403 FORBIDDEN on a higher-tier endpoint tells you which capability is missing.

On this page