Discover/casablanca-bourse.com API
live

casablanca-bourse.com APIwww.casablanca-bourse.com

Access real-time share prices, market cap, bid/ask spreads, and sector data for all companies listed on the Casablanca Stock Exchange via one API endpoint.

Endpoints
1
Updated
1mo ago
Try it
Filter by sector name (partial match, case-insensitive). Omitting returns all sectors.
Filter by company name (partial match, case-insensitive). Omitting returns all companies.
api.parse.bot/scraper/79ba1cf9-d616-40e4-afde-7082f8c53d55/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Use it in your codegrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/79ba1cf9-d616-40e4-afde-7082f8c53d55/get_share_prices?sector=Banks&company=ATTIJARIWAFA' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 1 totalclick to expand

Get current share prices for all companies listed on the Casablanca Bourse. Returns reference price, opening price, closing price, high/low prices, change percentage, volume, quantity traded, market capitalization, and bid/ask data for each company, grouped by sector. Supports optional filtering by sector name or company name (partial match, case-insensitive).

Input
ParamTypeDescription
sectorstringFilter by sector name (partial match, case-insensitive). Omitting returns all sectors.
companystringFilter by company name (partial match, case-insensitive). Omitting returns all companies.
Response
{
  "type": "object",
  "fields": {
    "companies": "array of company objects with share price data including company, ticker, sector, status, reference_price, opening_price, closing_price, high_price, low_price, change_percent, volume, quantity_traded, market_cap, best_bid, best_ask, total_trades, instrument_url",
    "total_companies": "integer - number of companies returned after filtering"
  },
  "sample": {
    "data": {
      "companies": [
        {
          "sector": "Banks",
          "status": "T",
          "ticker": "ATW",
          "volume": 44006794.9,
          "company": "ATTIJARIWAFA BANK",
          "best_ask": 700,
          "best_bid": 686,
          "low_price": 686,
          "high_price": 694.8,
          "market_cap": 147586615554,
          "total_trades": 189,
          "closing_price": 686,
          "opening_price": 690,
          "change_percent": -0.72,
          "instrument_url": "https://www.casablanca-bourse.com/en/live-market/instruments/ATW",
          "quantity_traded": 63865,
          "reference_price": 691
        }
      ],
      "total_companies": 1
    },
    "status": "success"
  }
}

About the casablanca-bourse.com API

The Casablanca Bourse API provides live market data for every equity listed on the Casablanca Stock Exchange through a single get_share_prices endpoint that returns 12+ fields per company — including reference price, opening price, closing price, high/low range, change percentage, volume, quantity traded, market capitalization, and bid/ask data — with optional filtering by sector or company name.

What the API Returns

The get_share_prices endpoint returns an array of company objects covering all equities listed on the Casablanca Stock Exchange (Bourse de Casablanca). Each object includes ticker, company, sector, status, reference_price, opening_price, closing_price, high and low prices, change percentage, volume, quantity traded, market_capitalization, and bid/ask fields. The response also includes a total_companies integer reflecting how many records match your query.

Filtering Options

Two optional query parameters let you narrow results without post-processing. The sector parameter accepts a partial, case-insensitive string and returns only companies in matching sectors — useful when you care about, say, banking or real estate equities specifically. The company parameter works the same way for company names. Omitting both parameters returns the full list of listed companies grouped by sector.

Data Coverage and Freshness

Data covers all equities traded in the Marché Actions grouping on the Casablanca Bourse, organized by their official sector classification. The status field indicates each instrument's current trading state, and the bid/ask fields give you the best current quotes on each side of the order book. Market capitalization is included per company, making it straightforward to size positions or rank constituents within a sector.

Common use cases
  • Track intraday price movements for Moroccan equities using opening_price vs closing_price comparisons.
  • Build a sector-level dashboard by filtering get_share_prices with the sector parameter and aggregating market cap.
  • Screen for high-volume trading sessions using the volume and quantity traded fields.
  • Monitor bid/ask spread widening as a liquidity signal across Casablanca-listed stocks.
  • Calculate sector-weighted indices using market_capitalization data returned per company.
  • Alert on significant price moves by comparing reference_price against current prices and watching change_percentage thresholds.
  • Populate a watchlist for specific Moroccan companies using the company filter parameter.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000250 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does the Casablanca Bourse have an official developer API?+
The Casablanca Bourse does not publish a documented public developer API. Market data is presented through their live market web interface at casablanca-bourse.com, not via an official programmatic endpoint open to third-party developers.
What does the `get_share_prices` endpoint return for each company?+
Each company object includes ticker symbol, company name, sector, trading status, reference price, opening price, closing price, high and low prices, change percentage, volume, quantity traded, market capitalization, and bid/ask data. The response also includes a total_companies count reflecting the filtered result set.
Does the API cover historical price data or only current market data?+
The API covers current market data only — reference price, today's open/close, intraday high/low, and live bid/ask fields. Historical OHLCV time series are not included. You can fork this API on Parse and revise it to add a historical data endpoint if that coverage is needed.
Is data available for all Casablanca Stock Exchange market segments, including bonds and ETFs?+
The API currently covers the Marché Actions (equities) grouping. Bond listings, ETFs, and other instrument types are not included in the current endpoint. You can fork the API on Parse and revise it to add endpoints covering those additional market segments.
How precise is the sector filtering, and what happens if no companies match?+
The sector parameter does a partial, case-insensitive match against official sector classifications used by the Casablanca Bourse. If no companies match the supplied string, the response returns an empty companies array with total_companies set to 0. Omitting the parameter returns all sectors.
Page content last updated . Spec covers 1 endpoint from www.casablanca-bourse.com.
Related APIs in FinanceSee all →
mazda.ca API
Find current vehicle deals, financing rates, lease options, and incentives across all Mazda Canada models and trims, with pricing tailored to your province. Get instant payment quotes to compare your options and discover the best offers available.
13f.info API
13f.info API
etoro.com API
Monitor top eToro traders by accessing their profiles, portfolio holdings, performance statistics, and trading history to inform your investment decisions. Discover trending stocks and cryptocurrencies, search for specific instruments, and view detailed market data and news to stay updated on investment opportunities.
vegasinsider.com API
Retrieve MLB betting odds from major sportsbooks including bet365, FanDuel, and DraftKings, covering Moneyline, Total, and Runline markets for any supported date. Easily compare odds across books to identify the best available lines.
bizapedia.com API
Search for detailed business profiles and contact information from Bizapedia, including company details, employee data, and communication channels. Access comprehensive business intelligence to research companies and build targeted contact lists.
customs.gov.mv API
Check import/export duties, tariff classifications, and exchange rates for Maldives customs compliance, plus track vessel movements, company registrations, and declaration statuses. Get real-time data directly from the official customs portal to streamline your trade and logistics operations.
morningstar.com.au API
Access comprehensive financial data for Australian stocks, ETFs, and managed funds including key metrics, valuations, dividends, and historical prices. Search securities, review company profiles and ownership details, and stay informed with market news and upcoming dividend information.
immobiliare.it API
Search Italian property listings for sale or rent, browse real estate agencies, and explore price trends across Italian cities — all via immobiliare.it.