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

Changes

No recorded changes to this endpoint across all 1 revision of this API.