---
title: "Set Config"
method: POST
path: "/api/admin/auto-trader/set-config"
tags: ["admin-auto-trader"]
---

# Set Config

`POST /api/admin/auto-trader/set-config`

## Request

- Base URL: `https://api.equity-rank.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.equity-rank.com/api/admin/auto-trader/set-config`
- Auth: HTTP bearer

Update portfolio sizing config at runtime.

Accepted keys (all optional, pass only what you want to change):
  portfolio_value      — total capital to deploy (float, min $500)
  max_position_pct     — max fraction per trade (0.01–0.20, e.g. 0.05)

Changes take effect on the next cycle — no restart needed.

## Request body

- object

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/equity-rank/apis/equity-rank-api.md) · [All operations](https://skmtc.dev/equity-rank/apis/equity-rank-api/llms.txt) · [OpenAPI document](https://skmtc.dev/equity-rank/apis/equity-rank-api/revisions/c2f2463fee33?raw)
