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>",
"side": "LONG",
"closePnlUsd": "12.50",
"closePnlPct": "4.27",
"closeProceedsUsd": "12.50",
"closedBaseUnits": "<string>",
"isFullClose": true
}
}{
"statusCode": 400,
"message": "Query parameter \"groupId\" is required",
"error": "Bad Request",
"code": "NOT_GROUP_MEMBER"
}{
"statusCode": 400,
"message": "Query parameter \"groupId\" is required",
"error": "Bad Request",
"code": "NOT_GROUP_MEMBER"
}Perpetuals
Reduce / close a position
Reduce (or fully close) one of the caller’s positions, keyed by assignmentId. reduceFraction is in (0, 1]; set isFullClose: true for a full close. Subject to regional restrictions (see Eligibility & geo restrictions).
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>",
"side": "LONG",
"closePnlUsd": "12.50",
"closePnlPct": "4.27",
"closeProceedsUsd": "12.50",
"closedBaseUnits": "<string>",
"isFullClose": true
}
}{
"statusCode": 400,
"message": "Query parameter \"groupId\" is required",
"error": "Bad Request",
"code": "NOT_GROUP_MEMBER"
}{
"statusCode": 400,
"message": "Query parameter \"groupId\" is required",
"error": "Bad Request",
"code": "NOT_GROUP_MEMBER"
}Authorizations
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
Body
application/json
Response
The reduced/closed position.
Result of an open/increase/reduce. Close-side fields are populated on a full close.
Show child attributes
Show child attributes