Registers a new asset in the system using a valid CoinGecko ID or manually defined asset.
The endpoint enriches the asset with metadata and auto-discovers associated DEX pools and CEX markets. The new asset becomes queryable via other endpoints (e.g. ticker, pool state) within 30 seconds to 3 minutes.
Asset was added successfully, along with newly discovered pools and/or CEX data.
{
"status": "success",
"successMessage": "SUCCESS: new asset WBTC successfully added and should be available within 30 seconds for API. New pools for this assets: 12. New CEX data for this asset: 1."
}
✅ Accepted (HTTP 202)
If process is taking more than 20 seconds, you will receive a message that indicates your request is still being processed.
{
"status": "pending",
"successMessage": "PENDING: Your request to add a new asset is being processed. Adding a new asset can take up to 3 minutes in worst case, you can check at https://pricing.aleno.ai/v1/assets to see available assets and check if requested asset has been added."
}
{
"status": "failed",
"errorMessage": "FAILED: \"coingeckoId\" is required"
}
❌ External API Failure / Internal Error (HTTP 500)
CoinGecko fetch failed, pool discovery failed, or internal logic failed.
{
"status": "failed",
"errorMessage": "FAILED: failed to get coingecko coin for id: wrapped-bitcoin. Coingecko API returned HTTP status code 404"
}
or
{
"status": "failed",
"errorMessage": "FAILED: attempt to add new asset WBTC failed: failed to find pools for this token and no centralized exchange data found for this asset."
}