curl --request POST \
--url https://api.alpha-labs.trade/api/v1/predictions/proposals/{id}/sell \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amountUsd": "3.00"
}
'{
"data": {
"trade": {
"id": "<string>",
"proposalId": "<string>",
"groupId": "<string>",
"walletAddress": "<string>",
"tradeType": "BUY",
"tokenAmount": "4.27",
"tokenDecimals": 123,
"pricePerTokenUsd": "12.50",
"totalCostUsd": "12.50",
"venueFeeUsd": "12.50",
"pnlPct": "4.27",
"pnlUsd": "12.50",
"txSignature": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}
}
}{
"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"
}{
"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"
}{
"statusCode": 400,
"message": "Query parameter \"groupId\" is required",
"error": "Bad Request",
"code": "NOT_GROUP_MEMBER"
}Sell / cash out
Sell (cash out) part or all of a position. Send amountUsd (desired USDC value to sell — converted to an outcome-token amount at the current price and capped at your position), or max: true to sell the entire position. Exactly one is required. The realized USDC is determined at execution; amountUsd is an approximate target. Sells are sized against the venue’s per-order minimum (typically 5 contracts): a sub-minimum partial sell is floored up to the minimum, a partial that would strand an unsellable sub-minimum remainder extends to a full exit, and a position entirely below the minimum cannot be sold (POSITION_BELOW_MIN) — it settles automatically at resolution.
curl --request POST \
--url https://api.alpha-labs.trade/api/v1/predictions/proposals/{id}/sell \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amountUsd": "3.00"
}
'{
"data": {
"trade": {
"id": "<string>",
"proposalId": "<string>",
"groupId": "<string>",
"walletAddress": "<string>",
"tradeType": "BUY",
"tokenAmount": "4.27",
"tokenDecimals": 123,
"pricePerTokenUsd": "12.50",
"totalCostUsd": "12.50",
"venueFeeUsd": "12.50",
"pnlPct": "4.27",
"pnlUsd": "12.50",
"txSignature": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}
}
}{
"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"
}{
"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"
}{
"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
Send amountUsd (human USD string) OR max: true. When max is true, amountUsd is ignored.
Response
The sell trade.
Show child attributes
Show child attributes