Skip to content

Create Charts - /api/getChart

Creating a currency rate chart.

Creating a graph for a certain period

Request

Terminal window
curl --request GET --url 'https://kekkai-api.redume.su/api/getChart/week?from_currency=RUB&conv_currency=USD' --output 'chart.jpg'

Query params

ParameterDescription
from_currency*ISO 4217 code of the currency from which the conversion takes place
conv_currency*ISO 4217 code of the currency to which the conversion is performed
backendServices available for creating graphs: matplotlib, typst

URL params

ParameterDescription
periodAvailable parameters: week, month, quarter, year

* - Required arguments

Creating a schedule for specific days

Request

Terminal window
curl --request GET --url 'https://kekkai-api.redume.su/api/getChart/?from_currency=RUB&conv_currency=USD&start_date=2024-10-31&end_date=2024-11-08' --output 'chart.jpg'

Query params

ParameterDescription
from_currency*ISO 4217 code of the currency from which the conversion takes place
conv_currency*ISO 4217 code of the currency to which the conversion is performed
start_date*Start date of the period in the format YYYYY-DD-MM
end_date*Period end date in the format YYYYY-DD-MM
backendServices available for creating graphs: matplotlib, typst

* - Required arguments