Python
from compass_api_sdk import CompassAPI, models with CompassAPI( api_key_auth="<YOUR_API_KEY_HERE>", ) as compass_api: res = compass_api.sky.sky_position(chain=models.V1SkyPositionChain.ETHEREUM, user_address="0xacCEE9C7A5a759f814C7A770e2D8F78d662b1F60") # Handle response print(res)
{ "usds_value_of_deposits": "<string>", "shares": 123 }
Check the USDS overall position.
Your Compass API Key. Get your key here.
ethereum
The user-address of the desired position.
Successful Response
The USDS equivalent value of the user's deposits thus far (principal + yield).
Was this page helpful?