Pear Exchange
Execute

POST /api/positions/{positionId}/sell

POST
/api/positions/{positionId}/sell
AuthorizationBearer <token>

Privy access token. For live POST /execute, use the wallet-auth JWT instead.

In: header

Path Parameters

positionId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

text/event-stream

curl -X POST "https://api.pear.trade/api/positions/string/sell" \  -H "Content-Type: application/json" \  -d '{}'
Empty
Empty
Empty