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 that will receive the position
USD amount to buy (settlement token units)
Required range:
x >= 1
Whether to buy Based (true) or Cringe (false)
Minimum position size to receive (slippage protection)
Required range:
x >= 0