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
USD amount to buy
Required range:
x >= 1
Whether to buy Based (true) or Cringe (false) position
Minimum size of position to receive
Required range:
x >= 0
Unix timestamp after which transaction will revert