المطورون
انقل المساعد إلى تطبيقك أو عميل MCP أو موقعك. التكلفة في كل مكان مثل المحادثة.
POST/api/v1/conversations
بدء محادثة: { text, locale?, model?, tools? } — اطلب عبر tools أسعار العملات المشفرة أو التحليل الفني أو البحث على الويب.
tools
طلب حقيقي: تُخصم تكلفة الرسالة من أرصدتك. (رصيد واحد)
الشيفرة
curl -X POST "https://cryptoprice.pro/api/v1/conversations" \
-H "Authorization: Bearer sk_..." \
-H "Content-Type: application/json" \
-d '{"text":"…","locale":"ar"}'نص الاستجابة
ستظهر الاستجابة هنا.
الوثائق
أدوات العملات المشفرة
أدوات العملات المشفرة في المحادثة متاحة في API أيضًا: السعر، وملخص السوق، والتحليل الفني، وبيانات الشموع، ودفتر الأوامر، ومقارنة المنصات، ومعدل التمويل، والمحوّل، والبحث في الويب. أضفها بحقل tools؛ وتُعرض الأدوات المفعّلة وتكلفتها عبر GET /api/v1/tools.
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 }, …]