GET
/
v0
/
morpho
/
vault_position
from compassapisdk import CompassAPISDK, models


with CompassAPISDK(
    api_key_auth="<YOUR_API_KEY_HERE>",
) as compass_api_sdk:

    res = compass_api_sdk.morpho.vault_position(chain=models.MorphoVaultPositionChain.ETHEREUM_MAINNET, user_address="0xa829B388A3DF7f581cE957a95edbe419dd146d1B", vault_address="0xbEef047a543E45807105E51A8BBEFCc5950fcfBa")

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

Authorizations

x-api-key
string
header
required

Your Compass API Key. Get your key here.

Query Parameters

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

The user address of the desired vault position.

vault_address
string
default:0xbEef047a543E45807105E51A8BBEFCc5950fcfBa
required

The vault address of the desired vault position.

Response

200
application/json

Successful Response

The response is of type object.