Using Madjik API for AI
Overview
Use Cases
1. AI Trading Assistants
import requests
import openai
def get_market_context():
metrics = ["ME10030", "ME10014", "ME10016"] # Sentiment, Funding, Liquidation
context = []
for m in metrics:
resp = requests.get(
f"https://api.madjik.io/v1/metrics/{m.lower()}",
headers={"Authorization": "Bearer YOUR_API_KEY"}
)
context.append(resp.json())
return context
# Feed to AI
context = get_market_context()
response = openai.chat.completions.create(
model="gpt-4",
messages=[
{"role": "system", "content": "You are a crypto trading assistant."},
{"role": "user", "content": f"Given this market data: {context}, what's your analysis?"}
]
)2. Sentiment Analysis Enhancement
3. Risk Assessment AI
Best Practices
Related Metrics for AI
Metric
Best For
See Also
Last updated