GET
/
v0
/
sky
/
position
import { CompassApiSDK } from "@compass-labs/api-sdk";

const compassApiSDK = new CompassApiSDK({
  apiKeyAuth: "<YOUR_API_KEY_HERE>",
});

async function run() {
  const result = await compassApiSDK.sky.position({
    userAddress: "0xa829B388A3DF7f581cE957a95edbe419dd146d1B",
  });

  // Handle the result
  console.log(result);
}

run();
{
  "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
string
default:ethereum:mainnet
Allowed value: "ethereum:mainnet"
user_address
string
default:0xa829B388A3DF7f581cE957a95edbe419dd146d1B
required

Response

200
application/json
Successful Response

The response is of type object.