Stripe: Convert settlement amounts between currencies using rates published against the US dollar.
You're an analyst on the treasury operations team at Stripe. A batch of settlement requests needs to be converted between currencies before payouts go out. The rates team publishes each currency's rate against the US dollar, and those rates arrive as coded strings from an upstream system, so part of the job is getting them into a usable form.
stripe_exchange_rates.csv:
rate_idrate_code - coded string from the upstream system with the currency pair and the rate against the US dollar, e.g. USD:EUR:0.9132stripe_settlement_requests.csv:
request_idamount - the amount to convertfrom_currency - source currencyto_currency - target currencyYou can solve this in Python, SQL, or a mix of both — StrataScratch notebooks support both languages in the same notebook.
Assume this data comes directly from the rates feed and the settlement queue and hasn't been cleaned, so review it carefully before relying on the numbers. When something looks off, work out what it is and decide how to handle it; when a definition or a final decision is genuinely ambiguous, choose a reasonable option and explain why. There's often more than one valid way to compute a result, so explain the approach you take and the reasoning behind your choices.
What's assessed: your results, and how clearly you explain what you see in the data and justify the choices you make.
See the full interview round by round, with questions for each stage.