Spot
Close a spot proposal
Close a proposal (creator only). Sells the creator’s full position and puts the proposal in a closed state.
POST
/
api
/
v1
/
spot
/
proposals
/
{id}
/
close
Close a spot proposal
curl --request POST \
--url https://api.alpha-labs.trade/api/v1/spot/proposals/{id}/close \
--header 'Authorization: Bearer <token>'{
"data": {
"proposal": {
"id": "<string>",
"groupId": "<string>",
"createdByUserDynamicId": "<string>",
"tokenMetadataId": "<string>",
"reason": "<string>",
"initialPriceUsd": "12.50",
"exitPriceUsd": "12.50",
"exitPnlPct": "4.27",
"exitPnlUsd": "12.50",
"closedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"token": {
"id": "<string>",
"contractAddress": "<string>",
"symbol": "<string>",
"name": "<string>",
"logoUrl": "<string>",
"coingeckoId": "<string>",
"verified": true
},
"group": {
"uniqueId": "<string>",
"name": "<string>",
"image": "<string>"
},
"createdBy": {
"dynamicId": "<string>",
"username": "<string>"
},
"trades": [
{
"id": "<string>",
"tradingProposalId": "<string>",
"groupId": "<string>",
"walletAddress": "<string>",
"tokenAmount": "4.27",
"tokenDecimals": 123,
"pricePerTokenUsd": "12.50",
"totalCostUsd": "12.50",
"alphaFeeUsd": "12.50",
"pnlPct": "4.27",
"pnlUsd": "12.50",
"txSignature": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}
]
},
"trade": {
"id": "<string>",
"tradingProposalId": "<string>",
"groupId": "<string>",
"walletAddress": "<string>",
"tokenAmount": "4.27",
"tokenDecimals": 123,
"pricePerTokenUsd": "12.50",
"totalCostUsd": "12.50",
"alphaFeeUsd": "12.50",
"pnlPct": "4.27",
"pnlUsd": "12.50",
"txSignature": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}
}
}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
Response
The closed proposal and the closing trade.
Show child attributes
Show child attributes
⌘I
Close a spot proposal
curl --request POST \
--url https://api.alpha-labs.trade/api/v1/spot/proposals/{id}/close \
--header 'Authorization: Bearer <token>'{
"data": {
"proposal": {
"id": "<string>",
"groupId": "<string>",
"createdByUserDynamicId": "<string>",
"tokenMetadataId": "<string>",
"reason": "<string>",
"initialPriceUsd": "12.50",
"exitPriceUsd": "12.50",
"exitPnlPct": "4.27",
"exitPnlUsd": "12.50",
"closedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"token": {
"id": "<string>",
"contractAddress": "<string>",
"symbol": "<string>",
"name": "<string>",
"logoUrl": "<string>",
"coingeckoId": "<string>",
"verified": true
},
"group": {
"uniqueId": "<string>",
"name": "<string>",
"image": "<string>"
},
"createdBy": {
"dynamicId": "<string>",
"username": "<string>"
},
"trades": [
{
"id": "<string>",
"tradingProposalId": "<string>",
"groupId": "<string>",
"walletAddress": "<string>",
"tokenAmount": "4.27",
"tokenDecimals": 123,
"pricePerTokenUsd": "12.50",
"totalCostUsd": "12.50",
"alphaFeeUsd": "12.50",
"pnlPct": "4.27",
"pnlUsd": "12.50",
"txSignature": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}
]
},
"trade": {
"id": "<string>",
"tradingProposalId": "<string>",
"groupId": "<string>",
"walletAddress": "<string>",
"tokenAmount": "4.27",
"tokenDecimals": 123,
"pricePerTokenUsd": "12.50",
"totalCostUsd": "12.50",
"alphaFeeUsd": "12.50",
"pnlPct": "4.27",
"pnlUsd": "12.50",
"txSignature": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}
}
}