Documentation
PRISM API Documentation
Unified market data API with canonical IDs, asset resolution, and real-time feeds from 50+ exchanges. Start building in minutes.
Quick Start
1Get Your API Key
Sign up for a free account to get your API key. Free tier includes 1,000 requests/month.
Request API Key2Make Your First Request
Test the API with a simple cURL request:
curl -H "Authorization: Bearer YOUR_API_KEY" \
https://api.strykr.ai/v1/ticker/bitcoin3Parse the Response
You'll get a JSON response with normalized market data:
{
"asset": "bitcoin",
"symbol": "BTC",
"price": 50000.00,
"volume_24h": 30000000000,
"change_24h": 2.5,
"timestamp": 1704067200000
}Authentication
All API requests require authentication via an API key. Include your key in the Authorization header:
Header Authentication (Recommended)
Authorization: Bearer YOUR_API_KEYQuery Parameter (Alternative)
https://api.strykr.ai/v1/ticker/bitcoin?api_key=YOUR_API_KEY⚠️ Query parameters may be logged. Use header auth for production.
Security Best Practices
- • Never expose your API key in client-side code
- • Use environment variables in your applications
- • Rotate keys periodically
- • Use separate keys for development and production
Endpoints Overview
Base URL: https://api.strykr.ai
GET
/v1/assetsList all supported assets with canonical IDsGET
/v1/resolve/{symbol}Resolve any symbol to its canonical assetGET
/v1/ticker/{asset}Get current price and 24h statsGET
/v1/ohlcv/{asset}Get historical OHLCV candle dataGET
/v1/orderbook/{asset}Get order book depth (Pro+)GET
/v1/exchangesList supported exchangesCommon Query Parameters
exchangeFilter by exchange (e.g., binance, coinbase)intervalOHLCV interval: 1m, 5m, 15m, 1h, 4h, 1d, 1wlimitNumber of results to return (default: 100, max: 1000)start, endUnix timestamp range for historical dataCode Examples
Python
import requests
API_KEY = "your_api_key"
BASE_URL = "https://api.strykr.ai/v1"
headers = {"Authorization": f"Bearer {API_KEY}"}
# Get Bitcoin price
response = requests.get(f"{BASE_URL}/ticker/bitcoin", headers=headers)
data = response.json()
print(f"BTC Price: ${data['price']:,.2f}")
# Get historical OHLCV
params = {"interval": "1h", "limit": 24}
response = requests.get(
f"{BASE_URL}/ohlcv/ethereum",
headers=headers,
params=params
)
candles = response.json()
for candle in candles:
print(f"{candle['timestamp']}: {candle['close']}")JavaScript / Node.js
const API_KEY = 'your_api_key';
const BASE_URL = 'https://api.strykr.ai/v1';
async function getPrice(asset) {
const response = await fetch(`${BASE_URL}/ticker/${asset}`, {
headers: { 'Authorization': `Bearer ${API_KEY}` }
});
return response.json();
}
// Get multiple assets
const assets = ['bitcoin', 'ethereum', 'solana'];
const prices = await Promise.all(assets.map(getPrice));
prices.forEach((data, i) => {
console.log(`${assets[i]}: $${data.price.toLocaleString()}`);
});cURL
# Get current price
curl -H "Authorization: Bearer YOUR_API_KEY" \
"https://api.strykr.ai/v1/ticker/bitcoin"
# Get historical data
curl -H "Authorization: Bearer YOUR_API_KEY" \
"https://api.strykr.ai/v1/ohlcv/bitcoin?interval=1d&limit=30"
# Resolve a symbol
curl -H "Authorization: Bearer YOUR_API_KEY" \
"https://api.strykr.ai/v1/resolve/BTCUSDT"