Track exchange rates without checking
Daily USD to INR (or any pair) rate in your inbox
What you will receive
Exchange Rate: USD/INR
just now
Today's Rate 1 USD = 83.12 INR Change: +0.15 (+0.18%) Yesterday: 82.97 INR 7-day trend: ↗ Rising
How it works
- 1Humrun fetches the latest exchange rate daily
- 2It compares to yesterday and calculates the change
- 3You get the rate delivered to your inbox
You configure
USD
The currency to convert from
INR
The currency to convert to
View Python code
import requests
from state import state
import os
BASE = os.environ.get("BASE_CURRENCY", "USD")
TARGET = os.environ.get("TARGET_CURRENCY", "INR")
# Using exchangerate.host (free, no API key needed)
response = requests.get(f"https://api.exchangerate.host/latest?base={BASE}&symbols={TARGET}")
data = response.json()
current_rate = data["rates"][TARGET]
previous_rate = state.get("rate")
state["rate"] = current_rate
if previous_rate:
change = current_rate - previous_rate
change_pct = (change / previous_rate) * 100
direction = "↑" if change > 0 else "↓" if change < 0 else "→"
print(f"Exchange Rate: {BASE}/{TARGET}")
print(f"1 {BASE} = {current_rate:.2f} {TARGET}")
print(f"Change: {direction} {abs(change):.2f} ({abs(change_pct):.2f}%)")
print(f"Yesterday: {previous_rate:.2f} {TARGET}")
else:
print(f"Exchange Rate: {BASE}/{TARGET}")
print(f"1 {BASE} = {current_rate:.2f} {TARGET}")
print("First run - will track changes from tomorrow")Humrun remembers the previous rate to show daily changes.
Suggested schedule: Every day at 7 AM•Notifications: After every run