Explain a trading error code
explain_trading_errorUse it when an order is rejected or a bot/EA log shows an error code or message (e.g. retcode=10016, {"code":-1013,"msg":"Filter failure: LOT_SIZE"}, retCode 110007, sCode 51008) - instead of recalling error meanings from memory. Covers MT5 / MQL5 trade return codes (10004-10046) and GetLastError, Binance spot + USDS-M futures, Bybit v5 and OKX v5. Returns what it means, likely causes ranked, fix steps, a short tested code snippet where safe, the official source URL and the date it was read, with a signed receipt. A code that is not in the venue's official list is answered 'not covered' - never guessed. Paste the code and/or the log line as it is. 1 credit (free trial without a key).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "explain_trading_error"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | The error code as shown, e.g. 10016, TRADE_RETCODE_INVALID_STOPS, 4756, -2010, 110007, 51008 or 51008_1000. Optional if 'message' has it. | |
| venue | No | Where the error came from: mt5 (MetaTrader 5 / MQL5), binance (spot or USDS-M futures), bybit (v5) or okx (v5). If left out it is detected from the text when it is clear (e.g. retCode = Bybit, sCode = OKX). | |
| market | No | Optional: spot or perp (futures). Only matters for the few Binance codes whose meaning differs between spot and futures; also detected from words like fapi. | |
| message | No | The error message or the whole log line / JSON reply as pasted (up to 4 kB), e.g. 'failed market buy 0.01 EURUSD [Invalid volume]' or '{"retCode":10002,"retMsg":"..."}'. Not stored. |