1

Get your free API key

Get your free API key and get instant access to every endpoint.

2

Install the SDK

Check the API reference for all available endpoints. Use familiar TypeScript / Python wrappers, or hit pure REST

pip install compass_api_sdk
npm install @compass-labs/api-sdk
3

Make your first call

Here is an example to get the price of a token in USD

from compassapisdk import CompassAPISDK, models


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

    res = compass_api_sdk.token.price(chain=models.TokenPriceChain.ARBITRUM_MAINNET, token=models.TokenPriceToken.WBTC)

    # Handle response
    print(res)
4

Explore our guides

Here are the guides

Ready to test it yourself?

Get your free API key here and start building!

Need help? Ping us in on Discord or email contact@compasslabs.ai.