Skip to main content

Open Market

Retrieve real-time and historical open market forex rates.

GET/3.0/forex/open-market

Description

This endpoint provides daily open market exchange rates for major global currencies against the Pakistani Rupee (PKR). The rates are captured from leading exchange houses across Pakistan and reflect the retail forex market conditions.

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",
"buy": 278.50,
"sell": 279.90
},
{
"date": "2025-02-06",
"currency": "AED",
"buy": 75.95,
"sell": 76.05
}
]
}

Response Fields

FieldTypeDescription
datestringDate of the rates (YYYY-MM-DD)
currencystringQuoted currency ISO code (e.g., USD, AED, GBP)
buynumberOpen market buy rate (PKR per unit)
sellnumberOpen market sell rate (PKR per unit)

Error Responses

For detailed Common Error responses, see the Error Handling.

Examples

Get Latest Open Market Rates

curl -X GET "https://api.capitalstake.com/3.0/forex/open-market" \
-H "Authorization: Bearer YOUR_API_TOKEN"

Use Cases

  • Currency Conversion: Real-time exchange rates for currency conversions
  • Trade Finance: Access current retail forex rates for international transactions
  • FX Exposure Tracking: Monitor open market currency movements
  • Cross-border Remittances: Get current rates for remittance calculations
  • Travel & Tourism: Provide current rates to customers