Skip to main content
1

Get your free Compass API key

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

Install the Compass 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 compass_api_sdk import CompassAPI, models

compass = CompassAPI(api_key_auth="<YOUR_API_KEY_HERE>")

result = compass.token.token_price(
    chain=models.V1TokenPriceChain.ARBITRUM, token=models.TokenEnum.WBTC
)
print(result)
4

Explore Compass' tutorials

Here are the tutorials.

Ready to test it yourself?

Get your free API key here and start building!
Need help? Ping us in on Discord or email [email protected].