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
| 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",
"buy": 278.50,
"sell": 279.90
},
{
"date": "2025-02-06",
"currency": "AED",
"buy": 75.95,
"sell": 76.05
}
]
}
Response Fields
| Field | Type | Description |
|---|---|---|
date | string | Date of the rates (YYYY-MM-DD) |
currency | string | Quoted currency ISO code (e.g., USD, AED, GBP) |
buy | number | Open market buy rate (PKR per unit) |
sell | number | Open 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