NBG rates for a date
nbg_get_ratesFetch official National Bank of Georgia lari exchange rates for any calendar date, handling weekend and holiday carry-over and per-unit quotes.
Instructions
Official National Bank of Georgia (NBG) exchange rates of the Georgian lari (GEL) in force on one calendar date. Every rate is GEL per ONE unit of the currency (NBG quotes some currencies per 10, 100, 1000 or 10000 units; the raw pair is returned as nbgQuantity and nbgRate). Dates are calendar days in Tbilisi; the default is today. NBG sets a rate on business days around 17:00 Tbilisi time, valid from the next calendar day until the next rate, so after 17:00 tomorrow can be requested by date. Sundays, Mondays and days after a public holiday have no rate of their own: the rate in force was set earlier and is returned with carriedOver true and effectiveDate set to the day it took effect. Quote effectiveDate when carriedOver is true. A date whose rate NBG has not published yet returns an error, never a guess. When nbgQuantity is not 1, state NBG's quoted form first, nbgRate GEL per nbgQuantity units (for example 1.6452 GEL per 100 JPY), and the per-unit rate beside it: that quoted form is what nbg.gov.ge and accounting software show.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Calendar date YYYY-MM-DD. Defaults to today in Tbilisi. Tomorrow's rate exists after about 17:00 Tbilisi time. | |
| language | No | Language of currency names: en (default) or ka (Georgian). Codes, numbers and dates are identical in both. | |
| currencies | No | ISO 4217 codes to return, case-insensitive, duplicates ignored (for example ["USD", "EUR"]). Omit for all currencies. GEL has no row, since every rate is in GEL, so it is listed in unknownCodes. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rates | Yes | ||
| carriedOver | Yes | true when the rate in force on requestedDate took effect on an earlier day; it is still the official rate | |
| unknownCodes | Yes | ||
| effectiveDate | Yes | Calendar date the returned rate took effect, as published by NBG | |
| requestedDate | Yes |