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.