My App

Update position margin mode

Update the margin mode for a specific position.

Requires authentication.

POST
/portfolios/positions/{product_id}/margin-mode
OBSIDIAN-KEY<token>

In: header

OBSIDIAN-SECRET<token>

In: header

Path Parameters

product_idstring
margin_mode?string
Default"MARGIN_MODE_CROSS"
Value in"MARGIN_MODE_CROSS" | "MARGIN_MODE_ISOLATED"

Response Body

application/json

application/json

curl -X POST "https://api.dev.obsidian.exchange/portfolios/positions/string/margin-mode" \  -H "Content-Type: application/json" \  -d '{}'
{
  "success": true
}
{
  "code": 0,
  "message": "string",
  "details": [
    {
      "@type": "string",
      "property1": null,
      "property2": null
    }
  ]
}