Skip to main content
POST
/
trading
/
{account_name}
/
{connector_name}
/
position-mode
Set Position Mode
curl --request POST \
  --url http://localhost:8000/trading/{account_name}/{connector_name}/position-mode \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "position_mode": "<string>"
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>",
      "input": "<unknown>",
      "ctx": {}
    }
  ]
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

account_name
string
required
connector_name
string
required

Body

application/json

Request model for setting position mode on perpetual connectors

position_mode
string
required

Position mode (HEDGE or ONEWAY)

Response

Successful Response