Close a Position

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

Path Params
string
required

symbol or assetId

Query Params
number

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

number

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
URL
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json