GET
/
v1
/
sky
/
position
Python (SDK)
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(user_address="0xa829B388A3DF7f581cE957a95edbe419dd146d1B", chain=models.V1SkyPositionChain.ETHEREUM)

    # Handle response
    print(res)
{
  "usds_value_of_deposits": "<string>",
  "shares": 123
}

Authorizations

x-api-key
string
header
required

Your Compass API Key. Get your key here.

Query Parameters

chain
enum<string>
default:ethereum
Available options:
ethereum
user_address
string
default:0xa829B388A3DF7f581cE957a95edbe419dd146d1B
required

The user address of the desired position.

Response

200
application/json

Successful Response

The response is of type object.