Aller au contenu
GET /v1/meta

Endpoints & source

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/cse-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

curl "https://api.oanor.com/cse-api/v1/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/cse-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/cse-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/cse-api/v1/meta",
    headers={"x-oanor-key": "oanor_test_..."}
)

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "data": {
        "sample": {
            "aspi": 21637.43
        },
        "source": "Colombo Stock Exchange public feed (cse.lk/api), keyless",
        "service": "cse-api",
        "endpoints": {
            "GET /v1/meta": "This document.",
            "GET /v1/index": "The ASPI all-share index.",
            "GET /v1/quote": "Full company quote with beta & foreign holdings (symbol).",
            "GET /v1/movers": "Top gainers, losers or most-active (kind).",
            "GET /v1/summary": "The day's market summary (turnover, volume, trades)."
        },
        "description": "Live data from the Colombo Stock Exchange (CSE) in Sri Lanka with no key: the day's market summary (turnover, share volume, trades), the headline ASPI index, a full company quote with fundamentals (price, 52-week range, market cap, foreign-holding percentage and beta versus the ASPI and S&P SL20), and the top gainers/losers/most-active stocks. The Sri-Lanka-equities / frontier-market / foreign-holding-and-beta layer for trading dashboards and screeners. Distinct from other exchange readers — CSE with a fundamentals-and-risk cut. Live, short cache only.",
        "upstream_status": "ok"
    },
    "meta": {
        "timestamp": "2026-06-15T02:11:04.822Z",
        "request_id": "26bb8a50-fea4-4cf1-912b-599cffd99c3d"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}