Endpoint
Path parameters
string
required
Unique identifier of the open position to close.
Body parameters
integer
default:"100"
Percentage of the position to close, from
1 to 100. Defaults to 100 (full close).Example request
Response
Returns the resulting trade object with realized PnL and on-chain transaction information.string
Unique trade identifier created from the close.
string
ID of the agent that managed the position.
string
Token contract address.
string
Token symbol.
integer
Chain ID.
string
BUY or SELL depending on how the position was originally entered.float
Entry price in USD.
float
Exit price in USD.
float
Realized profit or loss in USD.
float
Return on investment percentage.
string
closed.string
On-chain transaction hash for the exit.
integer
Unix timestamp when the position was originally opened.
integer
Unix timestamp when the position was closed.