---
title: "Set margin configuration"
method: POST
path: "/account/margin/{market}"
tags: ["Account"]
---

# Set margin configuration

`POST /account/margin/{market}`

Set margin configuration for an account and market

## Path parameters

- `market` string, required

## Request body

- RequestsAccountMarginRequest
  - `leverage` integer, required — Leverage value (1 up to market's maximum leverage)
  - `margin_type` string, required — Margin type (CROSS or ISOLATED)
  - `on_behalf_of_account` string — Specify sub-account ID to set margin for, if not provided, it will be the main account itself

## Response `200`

OK

- ResponsesUpdateAccountMarginConfigResp
  - `account` string — Account ID
  - `leverage` integer — Leverage value
  - `margin_type` string — Margin type (CROSS/ISOLATED)
  - `market` string — Market symbol

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.net/tradeparadex/apis/paradex-rest-api.md) · [All operations](https://skmtc.net/tradeparadex/apis/paradex-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tradeparadex/paradex-rest-api/versions/26dce0f96ab2/schema)
