Skip to main content

Add Margin

Top up margin on an open position. Pushes the liquidation price further away from the mark price. See Margin & Leverage.

HTTP

MethodPOST
Endpoint/trade/api/v2/futures/add_margin
Rate limit10 requests per 60 seconds

Request Parameters

ParameterTypeMandatoryDescription
symbolstringYesSymbol with the open position, e.g. DOGEUSDT.
exchangestringYesEXCHANGE_2.
marginintegerYesUSDT amount to add. Must be ≤ available wallet balance.

Example

import requests

body = {"exchange": "EXCHANGE_2", "symbol": "dogeusdt", "margin": 16}
headers, path = sign_request("POST", "/trade/api/v2/futures/add_margin")
response = requests.post(BASE_URL + path, headers=headers, json=body)
print(response.json())

Response

{
"data": {
"exchange": "EXCHANGE_2",
"position_id": "8b81b763-df36-4c93-9bc8-9a93d65b8546",
"symbol": "DOGEUSDT",
"position_side": "LONG",
"leverage": "25",
"position_size": "65",
"position_value": "25.09455",
"position_margin": "50.052117186199",
"maint_margin": "37.641825",
"avg_entry_price": "0.38607",
"mark_price": "0.38694",
"last_price": "0.38677",
"unrealised_pnl": "-0.0455",
"liquidation_price": "-0.3752759970953692",
"status": "OPEN",
"created_at": 1732617093684,
"updated_at": 1732636761825
}
}

The response is the updated position object. Same shape as Get Positions. Note position_margin reflects the new (higher) value and liquidation_price has moved.