MarketIntell

Quick Start Guide

Get up and running with MarketIntell in under 5 minutes

Quick Start Guide

This guide walks you through creating an account, obtaining an API key, and making your first query — including streaming responses.

Prerequisites

  • An HTTP client (curl, fetch, requests, etc.)
  • A MarketIntell API key (sign up below)

Step 1: Create an Account

curl -X POST https://api.marketintell.ai/v1/auth/signup \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Your Name",
    "email": "[email protected]"
  }'
{
  "success": true,
  "data": {
    "key": "mi_k_abc123def456...",
    "id": "clx...",
    "name": "signup:Your Name",
    "key_prefix": "mi_k_abc1...",
    "scopes": ["read", "chat"],
    "rate_limit": 10,
    "tier": "free",
    "daily_query_limit": 20,
    "_message": "Save this API key — it will not be shown again."
  }
}

Save your API key securely — it will only be shown once.

Step 2: Make Your First Query

Use the /v1/chat endpoint to ask any crypto market question.

curl

curl -X POST https://api.marketintell.ai/v1/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{
    "message": "Give me a trade setup for ETH"
  }'

JavaScript

const response = await fetch("https://api.marketintell.ai/v1/chat", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "X-API-Key": "YOUR_API_KEY",
  },
  body: JSON.stringify({
    message: "Give me a trade setup for ETH",
  }),
});

const result = await response.json();
console.log(result.data.content);

Python

import requests

response = requests.post(
    "https://api.marketintell.ai/v1/chat",
    headers={
        "Content-Type": "application/json",
        "X-API-Key": "YOUR_API_KEY",
    },
    json={
        "message": "Give me a trade setup for ETH"
    },
)

data = response.json()
print(data["data"]["content"])

Step 3: Use Streaming

For real-time progressive output, set stream: true. The response uses Server-Sent Events (SSE).

curl

curl -N -X POST https://api.marketintell.ai/v1/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{
    "message": "Analyze whale movements for BTC",
    "stream": true
  }'

JavaScript

const response = await fetch("https://api.marketintell.ai/v1/chat", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "X-API-Key": "YOUR_API_KEY",
  },
  body: JSON.stringify({
    message: "Analyze whale movements for BTC",
    stream: true,
  }),
});

const reader = response.body!.getReader();
const decoder = new TextDecoder();

while (true) {
  const { done, value } = await reader.read();
  if (done) break;

  const chunk = decoder.decode(value);
  const lines = chunk.split("\n").filter((line) => line.startsWith("data: "));

  for (const line of lines) {
    const payload = JSON.parse(line.slice(6));
    console.log(payload);
  }
}

Python

import requests
import json

response = requests.post(
    "https://api.marketintell.ai/v1/chat",
    headers={
        "Content-Type": "application/json",
        "X-API-Key": "YOUR_API_KEY",
    },
    json={
        "message": "Analyze whale movements for BTC",
        "stream": True,
    },
    stream=True,
)

for line in response.iter_lines():
    if line:
        decoded = line.decode("utf-8")
        if decoded.startswith("data: "):
            payload = json.loads(decoded[6:])
            print(payload)

Next Steps

On this page