Get a user’s position in the market
cURL
curl --request GET \ --url https://mainnet.base.org/market/{marketAddress}/userHoldings/{userAddress}
{ "holdings": 123, "positionType": "based", "absoluteAmount": 123 }
Address of the market contract
Address of the user
User holdings retrieved successfully
User holdings (positive for Based, negative for Cringe)
Type of position held
based
cringe
none
Absolute amount of tokens held
Was this page helpful?