Market Functions
Sell
Sell a Based or Cringe position in the specified market
POST
Sell position in market
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
Pattern:
^0x[a-fA-F0-9]{40}$Body
application/json
Address whose position will be sold
Pattern:
^0x[a-fA-F0-9]{40}$Size of the position to sell
Required range:
x >= 1Whether selling Based (true) or Cringe (false) position
Minimum amount of USD to receive (slippage protection)
Required range:
x >= 0Sell position in market