quantbrasil robots get
Consulta um robô pelo ID com parâmetros e estatísticas
Sintaxe
quantbrasil robots get <robot-id>Esta é uma operação de leitura. Modos de saída: json, human.
Argumentos e opções
| Nome | Tipo | Obrigatório | Descrição | Padrão |
|---|---|---|---|---|
robot-id | Argumento | Sim | ID do robô | — |
--json | Opção | Não | Exibe saída JSON | — |
Exemplos
quantbrasil robots get 1Saída (--json)
Estrutura da resposta retornada com --json:
export interface RobotGetResponse {
ok: boolean;
robot: RobotDetailOut;
}
export interface RobotDetailOut {
id: number;
robot_name: string;
ticker: string;
timeframe_id: string;
strategy_id: string;
parameters: Record<string, JsonValue>;
is_following: boolean;
backtest_id: number | null;
num_operations: number;
pct_gains: number;
pct_profit: number;
drawdown: number;
ev: number;
first_trade_date: string | null;
last_trade_date: string | null;
}Exemplo de resposta
{
"ok": true,
"robot": {
"id": 1,
"robot_name": "JIM",
"ticker": "WINFUT",
"timeframe_id": "M15",
"strategy_id": "long_breakout",
"parameters": {
"window": 20,
"stop_in_days": 3
},
"is_following": false,
"backtest_id": 456,
"num_operations": 120,
"pct_gains": 0.55,
"pct_profit": 0.34,
"drawdown": 8.4753,
"ev": 0.003,
"first_trade_date": "2023-12-01T10:00:00.000000",
"last_trade_date": "2026-08-11T16:00:00.000000"
}
}