Skip to main content

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

NameTypeRequiredDescriptionExample
fromstring (date)NoStart date for range (YYYY-MM-DD)2025-02-01
tostring (date)NoEnd date for range (YYYY-MM-DD)2025-02-06
datestring (date)NoSingle date to fetch rates for2025-02-06
currencystringNoFilter 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

FieldTypeDescription
datestringDate of the weighted average rate (YYYY-MM-DD)
currencystringQuoted currency ISO code (e.g., USD, AED, GBP)
ratenumberDaily 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