What you’ll need
- An idea of what you want to build
- An API key from the Dashboard (only for production use, you can use the API without an API key in development mode)
Walkthrough
1
Identify your asset
Pick your asset symbol, name or address. If it is a symbol/name, make sure to check case sensitivity and to respect the asset name as listed on Mobula curated token list (explorable here). If it is an address, make sure to check the blockchain supported (check here for the full list) and to respect the blockchain ID format.
2
Call Mobula API
You can call Mobula API directly from your terminal using cURL or any HTTP client.You can also Mobula SDK (Beta):or a basic HTTP client:
3
Get your data
You will get a response with the following format:
Go further
Cool! We’re done with the basics. Here’s a few more things you can do with Mobula API:- Fetch up to 500 assets at once with
market/multi-data
endpoint (check here for more details) - Subscribe to real-time price updates with WebSockets (contact us on Telegram for more details)
- Fetch historical price data with
market/history
endpoint (check here for more details)