Daily Weighted Average Rates
Retrieve official interbank weighted average forex rates.
GET/3.0/forex/wgt-avg
Description
This endpoint provides the official Daily Weighted Average Rates (WAR) as reported by the State Bank of Pakistan (SBP). These rates are calculated from interbank transactions and serve as the official benchmark for fixing exchange rates in Pakistan's financial system.
Request
Authentication
- Type: Bearer Token
- Required: Yes
Parameters
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
from | string (date) | No | Start date for range (YYYY-MM-DD) | 2025-02-01 |
to | string (date) | No | End date for range (YYYY-MM-DD) | 2025-02-06 |
date | string (date) | No | Single date to fetch rates for | 2025-02-06 |
currency | string | No | Filter by specific currency code (ISO 4217) | USD |
Note: Either provide a single date parameter OR both from and to parameters. Do not mix them.
Response
Success Response (200)
{
"status": "ok",
"message": "",
"data": [
{
"date": "2025-02-06",
"currency": "USD",
"rate": 278.65
},
{
"date": "2025-02-06",
"currency": "AED",
"rate": 75.97
}
]
}
Response Fields
| Field | Type | Description |
|---|---|---|
date | string | Date of the weighted average rate (YYYY-MM-DD) |
currency | string | Quoted currency ISO code (e.g., USD, AED, GBP) |
rate | number | Daily Weighted Average Rate as reported by SBP (PKR per unit) |
Error Responses
For detailed Common Error responses, see the Error Handling.
Examples
Get Latest Weighted Average Rates
curl -X GET "https://api.capitalstake.com/3.0/forex/wgt-avg" \
-H "Authorization: Bearer YOUR_API_TOKEN"
Use Cases
- Interbank Settlements: Use official SBP rates for settling interbank transactions
- Commercial Contracts: Reference official rates in commercial contracts and agreements
- Regulatory Compliance: Meet SBP requirements using official weighted average rates
- Foreign Trade: Calculate customs valuations using official government rates
- Import/Export: Determine exchange rates for international trade documentation