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 real-time stock quote for a symbol.
Parameters
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%"
}
}
Get technical indicators for a symbol.
Parameters
Massive API
Proxy endpoints for Massive API dividend data.
Get dividend data for all stocks or filtered by symbol.
Parameters
Market Data
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%"
}
}
System API
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}")