My App

Update position leverage

Update the leverage for a specific position.

Requires authentication.

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

In: header

OBSIDIAN-SECRET<token>

In: header

Path Parameters

product_idstring
leverage?string
Formatuint64

Response Body

application/json

application/json

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