HomeGuidesRecipesAPI ReferenceGraphQLChangelogDiscussionsv2023.08
HomeLog In
API Reference
These docs are for v2023.08. Click to read the latest docs for v2023.12.

Close a Position for an Account

Closes (liquidates) the account’s open position for the given symbol. Works for both long and short positions.

Path Params
uuid
required

Account identifier.

string
required

The symbol or asset_id

Query Params
string

Optional the number of shares to liquidate. Can accept up to 9 decimal points. Cannot work with percentage

string

percentage of position to liquidate. Must be between 0 and 100. Would only sell fractional if position is originally fractional. Can accept up to 9 decimal points. Cannot work with qty

Response

Language
Credentials
Basic
base64
:
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json

©2023. Prime Industries, Services, and Trinkets LLC. We are not responsible