Add New Asset
Description
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.
URL
POST https://pricing.aleno.ai/v1/assetsHeaders
x-api-key: your-api-key
Content-Type: application/jsonRequest Body
coingeckoId
string
Optional
CoinGecko ID of the asset (e.g. bitcoin, wrapped-bitcoin). This ID is used to fetch token metadata and platform info.
asset
object
Optional
Manually defined asset. see example below
Example Query
With coingecko ID
curl -X POST https://pricing.aleno.ai/v1/assets \
-H "Content-Type: application/json" \
-H "x-api-key: your-api-key" \
-d '{
"coingeckoId": "flare-networks"
}'With manually defined asset (sylbol and tokenMapping)
Responses
✅ Success (HTTP 200)
Asset was added successfully, along with newly discovered pools and/or CEX data.
✅ Accepted (HTTP 202)
If process is taking more than 20 seconds, you will receive a message that indicates your request is still being processed.
⚠️ Conflict (HTTP 409)
The asset already exists in the system.
❌ Validation Error (HTTP 400)
Missing or invalid coingeckoId.
❌ External API Failure / Internal Error (HTTP 500)
CoinGecko fetch failed, pool discovery failed, or internal logic failed.
or
Last updated
Was this helpful?