QuantBrasil
Documentação

quantbrasil robots list

Lista os robôs ativos com estado de acompanhamento

Sintaxe

quantbrasil robots list

Esta é uma operação de leitura. Modos de saída: json, human.

Argumentos e opções

NomeTipoObrigatórioDescriçãoPadrão
--jsonOpçãoNãoExibe saída JSON

Exemplos

quantbrasil robots list

Saída (--json)

Estrutura da resposta retornada com --json:

export interface RobotListResponse {
  ok: boolean;
  robots: RobotSummaryOut[];
  total: number;
}

export interface RobotSummaryOut {
  id: number;
  robot_name: string;
  ticker: string;
  timeframe_id: string;
  strategy_id: string;
  parameters: Record<string, JsonValue>;
  status: string;
  is_following: boolean;
  backtest_id: number | null;
  last_five_trades_profit: RobotTradeProfitOut[];
}

export interface RobotTradeProfitOut {
  start_date: string;
  end_date: string | null;
  pct_profit: number;
}

Exemplo de resposta

{
  "ok": true,
  "total": 2,
  "robots": [
    {
      "id": 1,
      "robot_name": "JIM",
      "ticker": "WINFUT",
      "timeframe_id": "M15",
      "strategy_id": "long_breakout",
      "parameters": {
        "window": 20,
        "stop_in_days": 3
      },
      "status": "BUSY",
      "is_following": true,
      "backtest_id": 456,
      "last_five_trades_profit": [
        {
          "start_date": "2026-08-11T13:00:00.000000",
          "end_date": "2026-08-11T16:00:00.000000",
          "pct_profit": 0.012
        },
        {
          "start_date": "2026-08-12T10:00:00.000000",
          "end_date": null,
          "pct_profit": 0.0021
        }
      ]
    },
    {
      "id": 2,
      "robot_name": "PAM",
      "ticker": "WINFUT",
      "timeframe_id": "M15",
      "strategy_id": "short_breakout",
      "parameters": {
        "window": 15,
        "stop_in_days": 3
      },
      "status": "AVAILABLE",
      "is_following": false,
      "backtest_id": 789,
      "last_five_trades_profit": []
    }
  ]
}