New to Kestra?
Use blueprints to kickstart your first workflows.
Fetch the daily USD/INR rate from a free API, extract it with DuckDB, and branch on a threshold using an If task and a daily schedule in Kestra.
Track a currency pair without standing up a database. This blueprint calls a free exchange-rate API every day, reads the USD to INR rate out of the JSON response with DuckDB, and uses an If task to log whether the rate is above or at-or-below a threshold you choose.
daily_check trigger (io.kestra.plugin.core.trigger.Schedule) runs the flow every day at 09:00 Asia/Kolkata.fetch_rate uses io.kestra.plugin.core.http.Request to get the latest USD to INR rate from the Frankfurter API.extract_rate uses io.kestra.plugin.jdbc.duckdb.Query to mount the response as rates.json via inputFiles, then reads rates.INR and the date with read_json_auto. fetchType: FETCH_ONE returns a single row.check_rate uses io.kestra.plugin.core.flow.If to compare outputs.extract_rate.row.usd_inr with the threshold input, then runs above_threshold or below_threshold.This flow uses no secrets. The Frankfurter API needs no key.
threshold (FLOAT, default 80): the rate to compare against.threshold.above_threshold or below_threshold.outputs.extract_rate.row.usd_inr: the current USD to INR rate.outputs.extract_rate.row.rate_date: the date of the rate.symbols=INR and the SQL to watch another currency.