Skip to content

PEN to MAD exchange rate API

Sol to Moroccan Dirham · quoted 2026-10-04

2.8932

▲ +10.01% over 1Y

1 PEN = 2.8932 MAD · 1 MAD = 0.34564 PEN · Get this rate via the API

1 PEN buys 2.8932 MAD as of 2026-10-04, so 1 MAD buys 0.34564 PEN. Over the last year, PEN/MAD traded between 2.6300 and 2.8932, averaged 2.7336 and rose 10.01%. The API holds daily PEN/MAD rates from 2024-08-24 — 2 years of history — so any past day, or a whole series, is one request away.

Converting an invoice? Convert an amount on a specific date.

PEN/MAD over 1Y

PEN/MAD over 1Y: show the values
PointPEN/MAD
2025-10-042.6300
2025-10-112.6618
2025-10-182.7113
2025-10-252.7290
2025-11-012.7449
2025-11-082.7425
2025-11-152.7433
2025-11-222.7499
2025-11-292.7555
2025-12-062.7429
2025-12-132.7308
2025-12-202.7220
2025-12-272.7077
2026-01-032.7186
2026-01-102.7495
2026-01-172.7395
2026-01-242.7186
2026-01-312.7143
2026-02-072.7245
2026-02-142.7261
2026-02-212.7273
2026-02-282.7290
2026-03-072.6740
2026-03-142.7287
2026-03-212.6895
2026-03-282.7011
2026-04-042.7226
2026-04-112.7398
2026-04-182.6843
2026-04-252.6528
2026-05-022.6376
2026-05-092.6555
2026-05-162.6897
2026-05-232.6946
2026-05-302.6995
2026-06-062.6649
2026-06-132.7242
2026-06-202.7516
2026-06-272.7430
2026-07-042.7535
2026-07-112.7519
2026-07-182.7527
2026-07-252.7513
2026-08-012.7518
2026-08-082.7614
2026-08-152.7547
2026-08-222.7573
2026-08-292.7708
2026-09-052.7942
2026-09-122.8037
2026-09-192.8178
2026-09-262.8347
2026-10-032.8932

High

2.8932

Low

2.6300

Average

2.7336

For developers

Get this rate via the API

One GET request returns the PEN/MAD rate as JSON. The free plan includes 1,000 requests a month, with no credit card required.

cURL
curl -X GET "https://api.fxfeed.io/v2/latest?api_key=YOUR_API_KEY&base=PEN&currencies=MAD"
JavaScript
const response = await fetch("https://api.fxfeed.io/v2/latest?api_key=YOUR_API_KEY&base=PEN&currencies=MAD");
const data = await response.json();
Python
import requests

data = requests.get("https://api.fxfeed.io/v2/latest?api_key=YOUR_API_KEY&base=PEN&currencies=MAD").json()

Replace YOUR_API_KEY with the key from your dashboard.

PEN/MAD API questions

How do I get the PEN/MAD exchange rate from an API?

Send one GET request to https://api.fxfeed.io/v2/latest?api_key=YOUR_API_KEY&base=PEN&currencies=MAD, replacing YOUR_API_KEY with your own key. The JSON response carries the date and the latest PEN/MAD rate in rates.MAD.

How far back does PEN/MAD historical data go?

Daily PEN/MAD rates are available from 2024-08-24. Request one day with the /historical endpoint and a date, or a range of days with /timeseries.

Is there a free PEN/MAD exchange rate API?

Yes. The free plan includes 1,000 requests a month, with no credit card required; paid plans raise the limit.

Put these rates in your application

One endpoint, JSON responses, 160+ currencies and history back to 1999. Start on the free plan.