"description":"Symbol to read the last tick time from. Only used when type=symbol. Defaults to the current chart symbol"
}
},
"required":["type"]
}
},
{
"name":"account_info",
"description":"Returns a property of the current trading account (balance, equity, leverage, currency, etc.)",
"inputSchema":{
"type":"object",
"properties":{
"mode":{
"type":"integer",
"description":"Type of the requested property: 0=double, 1=integer, 2=string. Defaults to 0",
"enum":[0,1,2]
},
"property":{
"type":"string",
"description":"Name of the MT5 ENUM_ACCOUNT_INFO_DOUBLE / ENUM_ACCOUNT_INFO_INTEGER / ENUM_ACCOUNT_INFO_STRING constant matching the selected mode, e.g. ACCOUNT_BALANCE, ACCOUNT_LEVERAGE, ACCOUNT_CURRENCY"
}
},
"required":["mode","property"]
}
},
{
"name":"terminal_info",
"description":"Returns a property of the running MT5 terminal (build, connected, data path, etc.)",
"inputSchema":{
"type":"object",
"properties":{
"mode":{
"type":"integer",
"description":"Type of the requested property: 0=double, 1=integer, 2=string. Defaults to 0",
"enum":[0,1,2]
},
"property":{
"type":"string",
"description":"Name of the MT5 ENUM_TERMINAL_INFO_DOUBLE / ENUM_TERMINAL_INFO_INTEGER / ENUM_TERMINAL_INFO_STRING constant matching the selected mode, e.g. TERMINAL_BUILD, TERMINAL_CONNECTED, TERMINAL_DATA_PATH"
}
},
"required":["mode","property"]
}
},
{
"name":"get_err_description",
"description":"Returns the human readable description of an MT5 error code",
"inputSchema":{
"type":"object",
"properties":{
"error_code":{
"type":"integer",
"description":"MT5 error code. Defaults to -1"
},
"include_code":{
"type":"boolean",
"description":"If true prefixes the description with the numeric code. Defaults to true"
}
},
"required":["error_code"]
}
},
{
"name":"get_expert_logs",
"description":"Returns the last lines of the expert/terminal log",
"inputSchema":{
"type":"object",
"properties":{
"start_date":{
"type":"string",
"description":"Date from which to read the log. Defaults to the current time"
},
"byte_start":{
"type":"integer",
"description":"Byte offset to start reading from. Defaults to 3"
},
"byte_counts":{
"type":"integer",
"description":"Amount of bytes to read. Defaults to 100"