Skip to content

Pobieranie kursów walut

API

Params

  • typeOfCurrency np. euro, funt itp.
  • date - data kursu

Request

HTTP
1
2
3
4
5
GET {{host}}/api/erp/currency/rates/pln/{typeOfCurrency}?date={date}

example

{{host}}/api/erp/currency/rates/pln/eur?date=2021-09-09

Response

JSON
1
2
3
4
5
code: "EUR"
currency: "euro"
rates: [{no: "175/A/NBP/2021", effectiveDate: "2021-09-09", mid: 4.5315}]
0: {no: "175/A/NBP/2021", effectiveDate: "2021-09-09", mid: 4.5315}
table: "a"