Introduction

Mission Control provides a comprehensive API for accessing market data, property calculations, and system information. All API endpoints are accessible via HTTPS and return JSON responses.

Base URL

https://mc.ruralhaven.co/api

Authentication

Currently public (no auth required)

Response Format

JSON with CORS enabled

Alpha Vantage API

Proxy endpoints for Alpha Vantage market data. Rate limited to 5 calls per minute.

GET /api/alpha/quote?symbol=SPY

Get real-time stock quote for a symbol.

Parameters

symbol string Stock symbol (e.g., SPY, AAPL, MSFT)

Example Request

GET /api/alpha/quote?symbol=SPY

Example Response

{
  "Global Quote": {
    "01. symbol": "SPY",
    "05. price": "710.1400",
    "09. change": "8.4800",
    "10. change percent": "1.2086%"
  }
}
Try this endpoint
GET /api/alpha/technical?symbol=SPY&indicator=RSI

Get technical indicators for a symbol.

Parameters

symbol string Stock symbol
indicator string Indicator type (RSI, MACD, BBANDS, SMA, EMA)
interval string Time interval (daily, weekly, monthly)

Massive API

Proxy endpoints for Massive API dividend data.

GET /api/massive/dividends

Get dividend data for all stocks or filtered by symbol.

Parameters

symbol string Optional stock symbol to filter
Try this endpoint

Market Data

GET /api/market/overview

Get aggregated market data including indices, commodities, and crypto.

Example Response

{
  "SPY": {
    "price": "710.14",
    "change": "8.48",
    "changePercent": "1.21%"
  },
  "VIX": {
    "price": "15.23",
    "change": "-0.45",
    "changePercent": "-2.87%"
  }
}
Try this endpoint

System API

GET /api/system/status

Get system status and health metrics.

Try this endpoint
GET /api/docs

Get this API documentation in JSON format.

Try this endpoint

Rate Limits

Alpha Vantage

5 calls per minute
500 calls per day

Massive API

Unknown limits
Use responsibly

Other Endpoints

No limits
Cache when possible

Integration Examples

JavaScript Fetch Example

// Fetch market data
async function getMarketData() {
  const response = await fetch('https://mc.ruralhaven.co/api/market/overview');
  const data = await response.json();
  console.log('Market data:', data);
}

// Fetch stock quote
async function getStockQuote(symbol) {
  const response = await fetch(`https://mc.ruralhaven.co/api/alpha/quote?symbol=${symbol}`);
  const data = await response.json();
  return data['Global Quote'];
}

Python Requests Example

import requests

# Get system status
response = requests.get('https://mc.ruralhaven.co/api/system/status')
status = response.json()
print(f"System status: {status}")

# Get dividend data
response = requests.get('https://mc.ruralhaven.co/api/massive/dividends')
dividends = response.json()
print(f"Dividend data: {dividends}")