MTContext Docs
Tool Reference

Market

4 tools in this category.

Overview

Market includes 4 tools for this workflow area.

Available tools: get_bars, get_symbol_info, get_symbols, get_tick.

Use the parameter tables and examples below as the canonical request contract.

get_bars

Returns OHLCV bars for a symbol and timeframe.

Parameters

NameTypeRequiredDefaultDescription
symbolstringYes
timeframestringYes(one of: M1, M5, M15, M30, H1, H4, D1, W1, MN1)
countintegerNo100

Example Request

{
  "tool": "get_bars",
  "arguments": {
    "symbol": "EURUSD",
    "timeframe": "M1",
    "count": 100
  }
}

Usage Notes

  • Start with a smaller count/bars value while iterating, then increase once the workflow is stable.
  • Use one timeframe for quick checks and multiple timeframes only when you need cross-timeframe analysis.

get_symbol_info

Returns contract spec for a symbol: lot size, swap rates, digits.

Parameters

NameTypeRequiredDefaultDescription
symbolstringYes

Example Request

{
  "tool": "get_symbol_info",
  "arguments": {
    "symbol": "EURUSD"
  }
}

get_symbols

Returns all symbols available in Market Watch.

Parameters

No parameters.

Example Request

{
  "tool": "get_symbols",
  "arguments": {}
}

get_tick

Returns the current bid, ask, and spread for a symbol.

Parameters

NameTypeRequiredDefaultDescription
symbolstringYes

Example Request

{
  "tool": "get_tick",
  "arguments": {
    "symbol": "EURUSD"
  }
}

On this page