Market Functions
Tokens to USD
Calculate how much USD will be received for selling a position
GET
Calculate tokens to USD conversion
This is a smart contract view 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}$Query Parameters
Tokens in (positive when selling Based, negative when selling Cringe)
Calculate tokens to USD conversion