API Documentation

Integrate Oracode's powerful AI predictions directly into your applications with our developer-friendly API

Real-time Data

Access live market predictions and data with sub-second latency

Secure & Reliable

Enterprise-grade security with 99.9% uptime guarantee

Global Coverage

Support for 100+ cryptocurrencies across all major exchanges

API Endpoints

GET
Get Prediction
Get AI prediction for a specific cryptocurrency

Endpoint:

GET /v1/predictions/{symbol}

Example Request:

curl -X GET "https://api.oracode.ai/v1/predictions/BTC" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"
GET
Get Multiple Predictions
Get predictions for multiple cryptocurrencies in a single request

Endpoint:

GET /v1/predictions?symbols=BTC,ETH,SOL

Example Request:

curl -X GET "https://api.oracode.ai/v1/predictions?symbols=BTC,ETH,SOL" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"
GET
Market Data
Get real-time market data and analytics

Endpoint:

GET /v1/market/{symbol}

Example Request:

curl -X GET "https://api.oracode.ai/v1/market/BTC" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"
POST
Webhooks
Set up real-time notifications for predictions and market events

Endpoint:

POST /v1/webhooks

Example Request:

curl -X POST "https://api.oracode.ai/v1/webhooks" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://your-app.com/webhook",
    "events": ["prediction.new", "market.alert"],
    "symbols": ["BTC", "ETH"]
  }'

Response Format

Example Response
Standard JSON response format for prediction endpoints

JSON Response:

{
  "symbol": "BTC",
  "prediction": {
    "price": 45250.75,
    "confidence": 0.94,
    "timeframe": "24h",
    "direction": "bullish",
    "change_percent": 3.2
  },
  "market_data": {
    "current_price": 43850.20,
    "volume_24h": 28500000000,
    "market_cap": 860000000000
  },
  "timestamp": "2024-01-15T10:30:00Z",
  "model_version": "v2.1.0"
}

Rate Limits

Basic
1,000

requests/hour

Pro
10,000

requests/hour

Enterprise
Unlimited

custom limits

Ready to Get Started?

Sign up for a subscription to get your API key and start integrating Oracode's predictions