> For the complete documentation index, see [llms.txt](https://rwaperp-1.gitbook.io/rwaperp-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://rwaperp-1.gitbook.io/rwaperp-docs/rwa-perp-b2b-api/rest-api-reference/positions-and-leverage/post-v1-position-margin.md).

# post v1 position margin

`POST /v1/position_margin`

**Authentication:** RWA

**Rate limit:** 10 requests per second per user

## Description

Add or reduce margin for an existing isolated margin position. This allows you to adjust the margin allocated to a specific isolated position after it has been opened.

* `ADD`: Transfer margin from your available balance to the isolated position, lowering the liquidation price.
* `REDUCE`: Transfer margin from the isolated position back to your available balance, raising the liquidation price.

**Prerequisites:** You must have an open isolated position on the specified symbol.

{% hint style="info" %}
This endpoint requires `trading` scope in API key.
{% endhint %}

## Parameters

No fields are defined in the published schema.

## Request body

| Field    | Type             | Required | Description                                              |
| -------- | ---------------- | -------- | -------------------------------------------------------- |
| `symbol` | string           | Yes      | Symbol of the isolated position Example: `PERP_ETH_USDC` |
| `amount` | string           | Yes      | Amount of margin to add or reduce Example: `3`           |
| `type`   | `ADD` / `REDUCE` | Yes      | Operation type Example: `ADD`                            |

## Responses

### HTTP 200

OK

| Field       | Type    | Required | Description                                                   |
| ----------- | ------- | -------- | ------------------------------------------------------------- |
| `success`   | boolean | Yes      | Indicates whether the request was successful. Example: `True` |
| `timestamp` | integer | No       | Server timestamp in milliseconds. Example: `1702989203989`    |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://rwaperp-1.gitbook.io/rwaperp-docs/rwa-perp-b2b-api/rest-api-reference/positions-and-leverage/post-v1-position-margin.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
