v1

latestOpenAPI 3.1.0raw.githubusercontent.com2026-05-06181217.3 KB
Portfolio

Close a position

Creates a sell order intent to close part of an account position. API keys need the portfolio:write scope. Review the current position before calling this endpoint.

post/api/portfolio/positions/close

Request body

tokenIdstring required
amountnumber required

Response

Close-position intent was queued.

intentIdstring uuid
statusstring
amountnumber