Market Functions
User Holdings
Get a user’s position in the market
GET
Get user holdings
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}$Address of the user
Pattern:
^0x[a-fA-F0-9]{40}$Get user holdings