Router Functions
Sell
Sell a position in a market through the router with safety checks and deadline protection
POST
Sell position through router
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
Pattern:
^0x[a-fA-F0-9]{40}$Size of position to sell
Required range:
x >= 1Whether selling Based (true) or Cringe (false) position
Minimum amount of USD to receive
Required range:
x >= 0Unix timestamp after which transaction will revert
Sell position through router