Naar de inhoud
GET /v1/meta

Service metadata and endpoint list

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/dca-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

curl "https://api.oanor.com/dca-api/v1/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/dca-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/dca-api/v1/meta");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/dca-api/v1/meta",
    headers={"x-oanor-key": "oanor_test_..."}
)

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "note": "prices = the asset price at each buy, comma-separated oldest first. contribution = cash invested each period. fee_pct optional.",
        "source": "Computed in-process from caller-supplied prices (no upstream)",
        "service": "dca-api",
        "endpoints": {
            "GET /v1/meta": "This document.",
            "GET /v1/compare": "DCA vs lump-sum vs best/worst-case timing (prices=..., contribution=100).",
            "GET /v1/schedule": "Per-period breakdown (prices=..., contribution=100).",
            "GET /v1/calculate": "DCA outcome + lump-sum comparison (prices=100,80,120,100, contribution=100)."
        },
        "description": "Live dollar-cost-averaging analytics computed on demand from a price series. The calculate endpoint returns the outcome of investing a fixed amount each period (total invested, units, average cost, current value, profit, ROI) with a lump-sum comparison; the schedule endpoint returns the per-period breakdown; the compare endpoint ranks dollar-cost averaging against lump-sum, best-case and worst-case timing. Computed live from your input, nothing stored — works for stocks, crypto, ETFs or forex. A dollar-cost-averaging engine, distinct from compound-interest and return-analysis tools.",
        "upstream_status": "ok"
    },
    "meta": {
        "timestamp": "2026-06-11T07:49:30.387Z",
        "request_id": "96af1ea3-b988-46d4-a6c8-6f6e1e4ede20"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}