Skip to main content
POST
/
api
/
portfolio
/
positions
/
close
Close a position
curl --request POST \
  --url https://api.useblueprints.ai/api/portfolio/positions/close \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "tokenId": "<string>",
  "amount": 123
}
'
{
  "intentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "status": "<string>",
  "amount": 123
}

Authorizations

Authorization
string
header
default:bp_YOUR_API_KEY
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
tokenId
string
required
amount
number
required

Response

Close-position intent was queued.

intentId
string<uuid>
status
string
amount
number