---
title: "Generate Bot"
method: POST
path: "/generate-bot"
---

# Generate Bot

`POST /generate-bot`

## Request

- Base URL: `https://api.pruviq.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.pruviq.com/generate-bot`
- Auth: none declared

Generate a downloadable trading bot zip from strategy config.

## Request body

- GenerateBotRequest: Request to generate a trading bot zip.
  - `strategy_id` string
  - `direction` 'long' | 'short'
  - `sl_pct` number
  - `tp_pct` number
  - `max_bars` integer
  - `leverage` integer
  - `position_size_usd` number
  - `coins` string[]
  - `avoid_hours` integer[]
  - `backtest_win_rate` number
  - `backtest_profit_factor` number

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/pruviq/apis/pruviq-simulation-api.md) · [All operations](https://skmtc.dev/pruviq/apis/pruviq-simulation-api/llms.txt) · [OpenAPI document](https://skmtc.dev/pruviq/apis/pruviq-simulation-api/revisions/972384919a74?raw)
