Développeurs
Intégrez l’assistant à votre app, à votre client MCP ou à votre site. Partout, le coût est le même que dans le chat.
POST/api/v1/conversations
Démarrer une discussion : { text, locale?, model?, tools? } — avec tools, demandez cours crypto, analyse technique ou recherche web.
curl -X POST "https://cryptoprice.pro/api/v1/conversations" \
-H "Authorization: Bearer sk_..." \
-H "Content-Type: application/json" \
-d '{"text":"…","locale":"fr"}'Corps de la réponse
La réponse s’affichera ici.
Documentation
Outils crypto
Les outils crypto du chat sont aussi dans l’API : cours, aperçu du marché, analyse technique, bougies, carnet d’ordres, comparaison d’exchanges, taux de financement, convertisseur et recherche web. Ajoutez-les avec le champ tools ; GET /api/v1/tools liste les outils actifs et leur coût.
curl -X POST https://cryptoprice.pro/api/v1/conversations -H "Authorization: Bearer sk_..." -H "Content-Type: application/json" -d '{"text": "BTC and ETH price, 4h technical analysis and the cheapest exchange", "tools": ["crypto_price", "crypto_technical_analysis", "crypto_compare_exchanges"]}'
# GET /api/v1/conversations/{id}
{
"pending": false,
"messages": [
{ "role": "assistant", "content": "| Coin | Price | 24h | Signal | … |" }
]
}
# GET /api/v1/tools → open tools and their credit cost
[{ "name": "crypto_price", "credits": 0, "unit": "call", "pro": false }, …]