Skip to content
GET /v1/quote

Live quote for one or more CSE stocks

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/casablanca-stock-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

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

Example response

A real response from this endpoint, captured by the latest health check.

{
    "data": {
        "note": "The live quote for one or more Moroccan (Casablanca/CSE) stocks — price, change, open/high/low, volume, market cap, P/E and sector (in dirhams), with the company name. Pass codes (the CSE ticker, comma-separate up to 20, e.g. ATW,IAM).",
        "count": 2,
        "quotes": [
            {
                "low": 675,
                "high": 685,
                "open": 678,
                "price": 680,
                "change": 15,
                "sector": "Finance",
                "ticker": "ATW",
                "volume": 48104,
                "company": "Attijariwafa Bank SA",
                "currency": "MAD",
                "pe_ratio": 12.75,
                "market_cap": 137301687012.00002,
                "change_percent": 2.26
            },
            {
                "low": 91.2,
                "high": 91.99,
                "open": 91.99,
                "price": 91.4,
                "change": 1.4100000000000108,
                "sector": "Communications",
                "ticker": "IAM",
                "volume": 44070,
                "company": "Maroc Telecom SA",
                "currency": "MAD",
                "pe_ratio": 11.53,
                "market_cap": 80349320714,
                "change_percent": 1.57
            }
        ],
        "source": "Casablanca Stock Exchange / CSE (TradingView)"
    },
    "meta": {
        "timestamp": "2026-06-15T02:10:32.126Z",
        "request_id": "0d104258-3039-4a21-a4ab-ce58bc52a07e"
    },
    "status": "ok",
    "message": "Quote retrieved successfully",
    "success": true
}