# MTContext API

**Canonical:** https://apis.io/apis/mtcontext-com/mtcontext-com-api/  
**Provider:** MTContext — https://apis.io/providers/mtcontext-com/  
**Base URL:** https://api.mtcontext.com  
**Documentation:** https://docs.mtcontext.com/docs/api

MTContext API is one of 2 APIs that [MTContext](https://apis.io/providers/mtcontext-com/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. This API exposes 4 JSON Schema definitions. The published artifact set on APIs.io includes an OpenAPI specification and 4 JSON Schemas.

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

## Operations (53)

| Method | Path | Summary |
|---|---|---|
| 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 |

## Machine-readable artifacts (5)

- **OpenAPI** — https://artifacts.apis.io/mtcontext-com/openapi/_ae-authored/mtcontext-com-openapi-generated.yml
- **JSONSchema** — https://artifacts.apis.io/mtcontext-com/json-schema/mtcontext-com-get-api-v1-account-info-response-schema.json
- **JSONSchema** — https://artifacts.apis.io/mtcontext-com/json-schema/mtcontext-com-get-api-v1-terminals-response-schema.json
- **JSONSchema** — https://artifacts.apis.io/mtcontext-com/json-schema/mtcontext-com-post-api-v1-orders-request-schema.json
- **JSONSchema** — https://artifacts.apis.io/mtcontext-com/json-schema/mtcontext-com-post-api-token-request-schema.json

## Other MTContext APIs (1)

- [MTContext API](https://apis.io/apis/mtcontext-com/mtcontext-api/)

## Use this from code or an agent

- **REST, no key:** `GET https://apis.io/api/v1/providers/mtcontext-com` returns the provider's full profile as JSON.
- **MCP:** `https://apis.io/mcp` (Streamable HTTP) — search the catalog, read any provider, compare providers, check agent readiness.
- **Free API key** for catalog-wide search, ratings and comparisons: sign in with GitHub, Google or LinkedIn at https://apis.io/developer/account/ (plans: https://apis.io/developer/plans/).

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/mtcontext-com/mtcontext-com-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/mtcontext-com/.
