Market Functions
Buy
Buy a Based or Cringe position in the specified market
POST
Buy 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 that will receive the position
Pattern:
^0x[a-fA-F0-9]{40}$USD amount to buy (settlement token units)
Required range:
x >= 1Whether to buy Based (true) or Cringe (false)
Minimum position size to receive (slippage protection)
Required range:
x >= 0Buy position in market