This is a smart contract write function. The curl example shown is for illustration. To call this function, use web3 libraries (ethers.js, viem, web3.py) or JSON-RPC directly.
Path Parameters
Address of the market contract
Body
application/json
Address whose position will be sold
Size of the position to sell
Required range:
x >= 1
Whether selling Based (true) or Cringe (false) position
Minimum amount of USD to receive (slippage protection)
Required range:
x >= 0