Close a position
Trading and account
Close a position
Queue a close-position order intent.
POST
Close a position
Close part of an account position by creating a sell order intent. API keys need
portfolio:write.
Read portfolio positions first, then submit the exact tokenId and amount to close. The amount must be positive and cannot exceed the current position size.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.