---
title: "Crédit Populaire d’Algérie (CPA) Exchange Rate API: DZD Buy and Sell Rates as JSON"
description: "Crédit Populaire d’Algérie (CPA)'s cours commercial (transfer) rates for 7 currencies against the Algerian dinar, read hourly from the bank's own page and served as JSON with the Bank of Algeria official rate alongside. REST, JavaScript and Python examples."
canonical: https://allratestoday.com/blog/credit-populaire-d-algerie-cpa-exchange-rate-api/
source: AllRatesToday (https://allratestoday.com/) — Markdown mirror of the page above; index of all pages at https://allratestoday.com/llms.txt
generated: 2026-11-15T19:13:55.666Z
---

Crédit Populaire d’Algérie is a state-owned Algerian commercial bank listed on the Algiers stock exchange. Its home page shows bank-note and commercial (transfer) buying and selling rates in dinars. This guide shows how to read that board as JSON: what the rates mean, how they compare with the Bank of Algeria official rate and with other banks in Algeria, and the calls that return them.

## What the CPA board shows

- **7 currencies against the Algerian dinar**: CAD, CHF, EUR, GBP, JPY, SEK and USD. Every value is DZD per 1 unit of the foreign currency.
- **The cours commercial (transfer) pair.** Algerian banks quote two boards: a commercial (transfer) rate a few centimes either side of the Bank of Algeria rate, and a bank-note rate about 3% either side. The informal street rate for euros is far weaker and is not what banks print. The Bank of Algeria official rate is shown next to each row.
- **USD on 15 November 2026**: CPA bought at 135.69 and sold at 135.7 DZD, a spread of 0.01%. The Bank of Algeria official rate was 136.7, so the bank's mid sat -0.73% from it.
- **No timestamp on the bank's page.** CPA does not print a last-updated time, so `bank_updated_at` is `null` and `captured_at` (when AllRatesToday read the page) is the only time available.
- **Every day's board is kept permanently, from 15 November 2026, the day collection started.** Read one past day with `?date=`, or a range for one currency with the `/history` endpoint (paid plans).

## Spreads across the board

On the 15 November 2026 board the tightest spreads were USD (0.01%), JPY (0.02%), SEK (0.02%) and the widest CHF (0.07%), CAD (0.03%), GBP (0.02%). Spread is (sell − buy) ÷ mid: what a round trip through the bank costs, before any fees. The API returns it on every row as `spread_pct`, so you can rank currencies or alert when a bank widens its board.

## USD at CPA and other banks in Algeria

USD on the 2 boards AllRatesToday reads in Algeria, all captured on 15 November 2026 (the Bank of Algeria official rate was 136.7):

| Bank | Buy | Sell | Spread | Mid vs official |
| --- | --- | --- | --- | --- |
| **Crédit Populaire d’Algérie (CPA)** | 135.69 | 135.7 | 0.01% | -0.73% |
| BNP Paribas El Djazair | 136.34 | 136.9 | 0.41% | -0.06% |

CPA had the narrowest USD spread of the 2. One call to `/api/v1/bank-rates/dz` returns every board in the table at once.

## Get the board (REST)

You need an API key; the [free key](https://allratestoday.com/register/) works. The full board:

```
curl "https://allratestoday.com/api/v1/bank-rates/dz/cpadz" \
  -H "Authorization: Bearer art_live_your_key"
```

What comes back (the 15 November 2026 board, first three rows):

```
{
  "bank": "cpadz",
  "name": "Crédit Populaire d'Algérie (CPA)",
  "country": "dz",
  "quote_ccy": "DZD",
  "bank_updated_at": null,
  "basis": "Cours commercial (transfer)",
  "captured_at": "2026-11-15T11:16:13.748Z",
  "rates": [
    {"ccy":"CAD","buy":97.136,"sell":97.1676,"mid":97.1518,"spread_pct":0.033,"official":95.8725,"vs_official_pct":1.334},
    {"ccy":"CHF","buy":164.6315,"sell":164.7497,"mid":164.6906,"spread_pct":0.072,"official":163.683,"vs_official_pct":0.616},
    {"ccy":"EUR","buy":151.47,"sell":151.5003,"mid":151.48515,"spread_pct":0.02,"official":151.2242,"vs_official_pct":0.173},
    … 4 more currencies
  ],
  "disclaimer": "…",
  "attribution": { … }
}
```

One currency, with the row fields at the top level:

```
curl "https://allratestoday.com/api/v1/bank-rates/dz/cpadz?ccy=USD" \
  -H "Authorization: Bearer art_live_your_key"
```

```
{
  "bank": "cpadz",
  "name": "Crédit Populaire d'Algérie (CPA)",
  "country": "dz",
  "quote_ccy": "DZD",
  "bank_updated_at": null,
  "basis": "Cours commercial (transfer)",
  "captured_at": "2026-11-15T11:16:13.748Z",
  "ccy": "USD",
  "buy": 135.6893,
  "sell": 135.7043,
  "mid": 135.6968,
  "spread_pct": 0.011,
  "official": 136.6998,
  "vs_official_pct": -0.734,
  "disclaimer": "Retail buy/sell rates as displayed on each bank’s own website at capture time, quoted as home currency per 1 unit of foreign currency. Indicative only: banks change these through the day, apply them at the counter or in-app, and they are not official or reference rates. For the rate a regulation names, use the central-bank endpoints.",
  "attribution": {
    "source": "Board rates published by Crédit Populaire d’Algérie (CPA) on its own website, collected by AllRatesToday",
    "bank_url": "https://www.cpa-bank.dz/",
    "url": "https://allratestoday.com/bank-exchange-rate-api/dz/cpadz/",
    "terms": "Public pages that show the rates need a visible link to allratestoday.com"
  }
}
```

The board as it stood on a past day:

```
curl "https://allratestoday.com/api/v1/bank-rates/dz/cpadz?date=2026-11-15" \
  -H "Authorization: Bearer art_live_your_key"
```

One currency over a date range, one row per day (paid plans; add `&format=csv`, `xml` or `xlsx` for a file):

```
curl "https://allratestoday.com/api/v1/bank-rates/dz/cpadz/history?ccy=USD&from=2026-11-15&to=2026-11-15" \
  -H "Authorization: Bearer art_live_your_key"
```

## JavaScript

```
npm install @allratestoday/sdk
```

```
import { AllRatesToday } from '@allratestoday/sdk';

const client = new AllRatesToday({ apiKey: 'art_live_your_key' });

// Crédit Populaire d’Algérie (CPA)'s USD row
const r = await client.bankRates('dz', { bank: 'cpadz', ccy: 'USD' });
console.log(`CPA buys USD at ${r.buy}, sells at ${r.sell} DZD`);

// The board as it stood on a past day
const past = await client.bankRates('dz', { bank: 'cpadz', date: '2026-11-15' });
console.log(past.snapshot_date, past.rates.length);
```

## Python

```
import requests

r = requests.get(
    "https://allratestoday.com/api/v1/bank-rates/dz/cpadz",
    headers={"Authorization": "Bearer art_live_your_key"},
    timeout=10,
)
r.raise_for_status()
for row in r.json()["rates"]:
    print(row["ccy"], row["buy"], row["sell"], row["spread_pct"])
```

## Board rate or official rate?

The Bank of Algeria rate is the one tax, accounting and customs rules in Algeria name; nobody transacts at it. CPA's board is the price a customer actually gets. The API puts both on every row: `official` is the central bank's rate for the same currency and `vs_official_pct` is how far the bank's mid sits from it. Use the board to show customers a real price, compare banks for a remittance, or keep a dated record of what the bank quoted; use the [Bank of Algeria endpoint](https://allratestoday.com/central-bank-rates-api/bda/) when a rule asks for the official rate.

## FAQ

### Where do the Crédit Populaire d’Algérie (CPA) rates come from?

From the bank's own public rates page (https://www.cpa-bank.dz/), read hourly. AllRatesToday does not change the numbers: each row is the buy and sell price CPA shows, with the mid, the spread and the Bank of Algeria rate added.

### Are these the official DZD exchange rates?

No. They are CPA's retail prices for customers. The official rate in Algeria is the Bank of Algeria rate, which the API returns as `official` on each row where the central bank has one, and in full from the central-bank endpoint.

### How often is the CPA board updated?

AllRatesToday reads the page every hour. The bank prints no timestamp, so `captured_at` tells you when the rates were read.

### Can I get CPA rates for a past date?

Yes, from 15 November 2026 onward; every day's board is kept permanently. Add `?date=YYYY-MM-DD` for one day: the response is the board captured that day, or the nearest earlier day within five days, with `date_requested` and `snapshot_date` added. For a range, `/history?ccy=USD&from=…&to=…` returns one row per day as JSON, CSV, XML or XLSX on paid plans.

### Do I need an API key?

Yes. Commercial bank boards need an API key; any plan works, the free key included, and each call counts against the plan. Public pages or widgets that show the rates need a visible link to allratestoday.com.

## Crédit Populaire d’Algérie (CPA) rates, as JSON

Free API key, hourly board captures, the official rate alongside.

 [Get your free API key](https://allratestoday.com/register/)

## Related

- [Crédit Populaire d’Algérie (CPA) live board rates](https://allratestoday.com/bank-exchange-rate-api/dz/cpadz/)
- [All banks in Algeria side by side](https://allratestoday.com/bank-exchange-rate-api/dz/)
- [Bank of Algeria official rates API](https://allratestoday.com/central-bank-rates-api/bda/)
- [BNP Paribas El Djazair exchange rate API guide](https://allratestoday.com/blog/bnp-paribas-el-djazair-exchange-rate-api/)
- [Every bank exchange rate API guide, by country](https://allratestoday.com/blog/bank-exchange-rate-api-guides/)
- [Commercial bank rates API: every bank and country](https://allratestoday.com/bank-exchange-rate-api/)
