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.
Body
application/json
Address of the market
Size of position to sell
Required range:
x >= 1
Whether selling Based (true) or Cringe (false) position
Minimum amount of USD to receive
Required range:
x >= 0
Unix timestamp after which transaction will revert