Skip to main content
POST
/
api
/
v1
/
perps
/
positions
/
{assignmentId}
/
reduce
curl --request POST \
  --url https://api.alpha-labs.trade/api/v1/perps/positions/{assignmentId}/reduce \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "reduceFraction": "0.5",
  "isFullClose": false
}
'
{
  "data": {
    "assignmentId": "<string>",
    "proposalId": "<string>",
    "subaccountIndex": 123,
    "txSignature": "<string>",
    "marketSymbol": "<string>",
    "closePnlUsd": "12.50",
    "closePnlPct": "4.27",
    "closeProceedsUsd": "12.50",
    "closedBaseUnits": "<string>",
    "isFullClose": true
  }
}

Authorizations

Authorization
string
header
required

Send your API key as Authorization: Bearer murmo_.... Keys are created in the Murmo app. Header-only — keys are never read from the query string. Valid for the REST API under /api/v1 only (not the GraphQL endpoint).

Path Parameters

assignmentId
string
required

Body

application/json
reduceFraction
string
required

Fraction of current size to close, in (0, 1].

Example:

"0.5"

isFullClose
boolean
required

Response

The reduced/closed position.

data
object

Result of an open/increase/reduce. Close-side fields are populated on a full close.