get_freqtrade_bot_status
Query a freqtrade bot's current trading state including open positions, profit/loss, and win rate via its REST API.
Instructions
Query a freqtrade bot's REST API for its current trading state.
bot_name must match a key under freqtrade.bots in config (e.g. 'steady', 'fun'). Reads basic-auth credentials from the env vars named in user_env / pass_env on the bot's config entry.
Returns a dict with: bot_name, dry_run, strategy, timeframe, exchange, closed_trade_count, open_trade_count, realised_p_and_l_fiat, realised_p_and_l_pct, total_p_and_l_fiat, total_p_and_l_pct, win_rate, open_positions (list of {pair, opened, current_pnl_fiat, current_pnl_pct}).
Returns {"error": "..."} on any failure (unknown bot, missing creds, API down).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"bot_name": "<bot_name>"
},
"name": "get_freqtrade_bot_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bot_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||