API v1 — Live

Quanta Signal API

Programmatic access to astro-quantitative signals, portfolio data, cycle intelligence, and real-time trade webhooks.

Get API Key Explore Endpoints

Authentication

All API requests require an X-API-Key header. Generate your key from the account dashboard after subscribing to an API tier.

Making Authenticated Requests

bash
# Get current portfolio status
curl -H "X-API-Key: sf_live_your_key_here" \
     https://sacredfolio.cloud/api/v1/portfolio

# Get today's astrological context (Pro tier)
curl -H "X-API-Key: sf_live_your_key_here" \
     https://sacredfolio.cloud/api/v1/astro/today

Keys follow the format sf_live_<40 hex chars>. Store securely — keys cannot be retrieved after generation.

Rate Limits & Tiers

Three API tiers with sliding-window rate limiting. Headers X-RateLimit-Remaining and X-RateLimit-Limit are included in every response.

TierRate LimitSignalsDataAstro / CyclesWebhooksPrice
Starter 30 / min Active + Latest 20 10 Commodities Summary only $49/mo
Pro 120 / min Full history + Feed 239 Commodities + Macro Full detail $199/mo
Enterprise 600 / min Everything Everything + Bulk Everything 3Commas, Cornix, TV Custom

Endpoint Reference

18 endpoints grouped by function. Click to expand each group.

Signals

4 endpoints
GET /api/v1/signals/active Starter+

Currently open positions across all engines.

response
{
  "count": 3,
  "positions": [{
    "ticker": "BTC",
    "direction": "long",
    "entry_price": 83241.50,
    "stop_loss": 81500.00,
    "take_profit": 87000.00,
    "unrealized_pnl": 2.14
  }]
}
GET /api/v1/signals/latest Starter+

Last 20 closed trades with P&L, entry/exit prices, and signal type.

GET /api/v1/signals/feed Starter+

Aggregated signal feed — crypto, polymarket, sports. Filter by ?category=crypto.

GET /api/v1/signals/history Pro+

Full trade history with pagination. Query params: page, per_page, symbol, direction.

Portfolio

2 endpoints
GET /api/v1/portfolio Starter+

Portfolio overview — balances, P&L, win rates, active positions per engine.

response
{
  "total_balance": 523847.20,
  "total_pnl_pct": 4.77,
  "win_rate": 93.8,
  "engines": {
    "BTC": { "long": { "balance": 52410, "win_rate": 95.5 } }
  }
}
GET /api/v1/stats Starter+

Aggregate statistics per symbol and direction — total trades, win rate, avg P&L, best/worst trade.

Regime & Astro

4 endpoints
GET /api/v1/regime Starter+

Current market regime state — bull/bear/neutral with multiplier.

GET /api/v1/astro/today Pro+

Today's astrological context — numerology, moon phase, zodiac edge, Fibonacci, trine, confluence score.

response
{
  "numerology": { "value": 7, "bias": "bullish", "strength": "strong" },
  "moon": {
    "phase": "Waxing Gibbous",
    "zodiac_sign": "Leo",
    "void_of_course": false
  },
  "confluence": { "score": 78, "bias": "bullish" }
}
GET /api/v1/weather Pro+

Weather-commodity regime intelligence — 18-tier Weatherman pipeline output.

GET /api/v1/flow/summary Pro+

Unusual Whales options flow summary — institutional signals.

Cycles & Calendars

4 endpoints
GET /api/v1/cycles/state Starter+

Current cycle state. Starter: phase names. Pro+: numerology, confluence, regime, weather. Query: ?date=2026-03-13.

GET /api/v1/calendar/fibonacci Pro+

Fibonacci calendar data for a given date.

GET /api/v1/calendar/trine Pro+

Trine calendar data for a given date.

GET /api/v1/calendar/multi Pro+

Multi-digit calendar — cross-system digit patterns.

Data

5 endpoints
GET /api/v1/data/commodities Starter+

List available commodities. Starter: 10 majors. Pro+: all 239.

GET /api/v1/data/commodities/{commodity} Starter+

Price history. Query: ?start_year=2020&end_year=2026.

GET /api/v1/data/economic Starter+

List available economic series, filterable by category.

GET /api/v1/data/economic/{series_id} Starter+

Time series data for an economic indicator.

GET /api/v1/data/macro-snapshot Pro+

Latest macro indicator values — GDP, CPI, unemployment, rates.

Webhooks

4 endpoints
POST /api/v1/webhooks/subscribe Enterprise

Register a webhook URL to receive trade events in real time.

request
curl -X POST https://sacredfolio.cloud/api/v1/webhooks/subscribe \
  -H "X-API-Key: sf_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://your-server.com/webhook",
    "format": "3commas",
    "secret": "your_hmac_secret",
    "tickers": "BTC,ETH",
    "events": "open,close"
  }'
GET /api/v1/webhooks Enterprise

List your active webhook subscriptions with delivery stats.

DELETE /api/v1/webhooks/{id} Enterprise

Remove a webhook subscription.

POST /api/v1/webhooks/test Enterprise

Send a test payload to verify your webhook is receiving correctly.

Webhook Formats

Trade events are delivered in your chosen format. All payloads are signed with HMAC-SHA256 via the X-SF-Signature header.

JSON (Native)

Full Sacred Folio format with astro context, universe metadata, and complete trade data.

format: "json"

3Commas

Bot-ready format — message_type, pair, action. Direct integration with 500K+ trader marketplace.

format: "3commas"

Cornix

Text-based signal format for Cornix Telegram bots. Includes pair, direction, entry, targets, stop loss.

format: "cornix"

TradingView

Webhook alert format compatible with TradingView strategy alerts. Ticker, action, price fields.

format: "tradingview"
3commas payload
{
  "message_type": "bot",
  "bot_id": "",
  "email_token": "",
  "delay_seconds": 0,
  "pair": "USDT_BTC",
  "action": "open_long",
  "order_type": "market"
}

TradingView Integration

Pine Script v5 indicator for signal overlay and confluence scoring on your charts.

Quanta Signals Indicator

Manual overlay for Sacred Folio trade signals with astrological confluence panel.

  • Entry, stop loss, and multi-target price lines
  • Risk/reward ratio calculator with leverage
  • Confluence score panel — Fibonacci, Trine, Moon, Numerology
  • Alert conditions for automated webhook bridge
  • Obsidian + gold theme matching Sacred Folio
Download Pine Script

Setup Guide

  1. Download the Pine Script file above
  2. Open TradingView → Pine Editor → paste the script
  3. Click "Add to Chart" — the indicator appears with input fields
  4. Enter signal parameters from your Sacred Folio dashboard
  5. For automated alerts: set alert conditions on the indicator
  6. Point TradingView webhook URL to your 3Commas/Cornix bot

Ready to build?

Choose an API tier to get your key. Enterprise customers — reach out for custom limits and dedicated support.