Back to all templates
Python - CCY Compare
Call for an action if currency rate between two currencies goes up.
Description:
When currency rate between EUR and USD changes, action is invoked. Python Script is used to process data and apply arithmetic operations.
Key Features:
- Manual Trigger
- Http Client Component
- Script Component - Python
- Results logged with Logger
- Condition-based logging
Prerequisites:
- URL to REST endpoint for reading CCY
Ideal For:
Monithoring financial attributes and taking action on given expected results
STEPS
- Trigger: user invokes trigger manualy.
- Get current CCY rate EUR/USD from and REST endpoint.
- Get history value for same CCY EUR/USD rate from and REST endpoint.
- Process inputs in Python Script and expose to workflow
- Condition: if difference between today value and history value larger than 0 call for an action
CATEGORYFinance